/* ═══ PAGES.CSS — subpage + expansion components (loads after styles.css) ═══ */
/* Reuses :root tokens from styles.css. Dark theme, turf-green accent. */

:root {
    --tier-free: #64748b;
    --tier-pro: #22c55e;
    --tier-elite: #f5b301;
}

/* ═══ SUBPAGE HERO ═══ */
.subhero {
    position: relative;
    padding: 140px 0 64px;
    text-align: center;
    overflow: hidden;
}
.subhero .container { position: relative; z-index: 2; max-width: 820px; }
.subhero-glow {
    position: absolute;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    height: 820px;
    background: radial-gradient(ellipse, rgba(34,197,94,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.subhero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 18px 0 18px;
}
.subhero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.subhero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    justify-content: center;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--turf-green); }

/* ═══ TIER BADGE ═══ */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid transparent;
}
.tier-badge::before {
    content: '';
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor;
}
.tier-free  { color: var(--tier-free);  background: rgba(100,116,139,0.12); border-color: rgba(100,116,139,0.3); }
.tier-pro   { color: var(--tier-pro);   background: rgba(34,197,94,0.12);   border-color: rgba(34,197,94,0.3); }
.tier-elite { color: var(--tier-elite); background: rgba(245,179,1,0.12);   border-color: rgba(245,179,1,0.3); }

/* ═══ FEATURE ROWS (zig-zag) ═══ */
.feature-rows { padding: 40px 0 80px; }
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-row-media { order: -1; }
.feature-row-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--turf-green);
    margin-bottom: 14px;
}
.feature-row-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.feature-row-text > p {
    font-size: 1.02rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 24px;
}
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.spec-list li {
    position: relative;
    padding-left: 30px;
    font-size: 0.92rem;
    color: #d1d5db;
    line-height: 1.55;
}
.spec-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 2px;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.spec-list li strong { color: var(--text-main); font-weight: 600; }

/* ═══ SCREENSHOT PLACEHOLDER / FRAME ═══ */
.screenshot {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--border-green);
    background:
        linear-gradient(180deg, rgba(13,17,17,0.9) 0%, rgba(10,30,20,0.35) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px -24px rgba(0,0,0,0.6);
}
.screenshot-desktop { aspect-ratio: 16 / 10; }
.screenshot-phone   { aspect-ratio: 10 / 19; max-width: 300px; margin: 0 auto; }
.screenshot-wide    { aspect-ratio: 16 / 7; }
.screenshot-page    { aspect-ratio: 17 / 22; max-width: 380px; margin: 0 auto; }
.screenshot img { width: 100%; height: 100%; object-fit: cover; display: block; padding-top:35px;}
.screenshot.filled { border-style: solid; border-color: rgba(34,197,94,0.54); background: none; aspect-ratio: auto; }
.screenshot.filled img { height: auto; object-fit: contain; }
.screenshot-label {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    max-width: 90%;
}
.screenshot-label svg { margin: 0 auto 12px; display: block; opacity: 0.5; }
.screenshot-label .shot-name {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    color: var(--turf-green);
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.screenshot-label .shot-desc { font-size: 0.85rem; line-height: 1.5; color: var(--text-dim); }
.screenshot-label .shot-dims { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }

/* fake browser chrome bar for desktop shots */
.screenshot-desktop.chrome::before,
.screenshot-wide.chrome::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 34px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.screenshot-desktop.chrome::after,
.screenshot-wide.chrome::after {
    content: '';
    position: absolute;
    top: 13px; left: 16px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444;
    box-shadow: 16px 0 0 #f5b301, 32px 0 0 #22c55e;
}

/* ═══ STORE BADGES ═══ */
.store-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 10px 18px;
    transition: all 0.2s ease;
    min-width: 172px;
}
.store-badge:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.store-badge svg { flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge-text .sb-small { font-size: 0.62rem; color: var(--text-dim); font-weight: 500; }
.store-badge-text .sb-big { font-size: 1.05rem; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.store-badge-web {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
}
.store-badge-web .sb-big { color: var(--turf-green); }

/* ═══ RELATED FEATURES GRID ═══ */
.related {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-deep) 0%, #0a0f0a 100%);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.related-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
}
.related-card:hover { transform: translateY(-6px); border-color: var(--border-green); }
.related-card .rc-icon { color: var(--turf-green); margin-bottom: 12px; }
.related-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.related-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.related-card .rc-more { font-size: 0.8rem; font-weight: 700; color: var(--turf-green); margin-top: 12px; display: inline-block; }

/* ═══ FEATURE CARD LINKS (home grid upgrade) ═══ */
a.feature-card { display: block; color: inherit; }
.feature-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.feature-learn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--turf-green);
}
a.feature-card:hover .feature-learn { gap: 10px; }

/* ═══ CTA BAND ═══ */
.cta-band {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}
.cta-band .cta-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(34,197,94,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cta-band h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
}
.cta-band p { font-size: 1.05rem; color: var(--text-dim); margin-bottom: 32px; position: relative; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ═══ FAQ ═══ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--turf-green);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 18px 24px 22px; font-size: 0.92rem; color: var(--text-dim); line-height: 1.7; }
.faq-answer a { color: var(--turf-green); }

/* ═══ COMPARISON TABLE ═══ */
.compare-wrap { overflow-x: auto; max-width: 960px; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.compare-table {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
}
.compare-table th, .compare-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.compare-table thead th {
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-green);
}
.compare-table thead th.col-us {
    color: var(--turf-green);
    background: rgba(34,197,94,0.06);
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}
.compare-table td.col-us { background: rgba(34,197,94,0.04); font-weight: 600; color: var(--text-main); }
.compare-table tbody td:first-child { color: var(--text-dim); font-weight: 500; }
.cmp-yes, .cmp-no { display: inline-flex; }
.cmp-yes { color: var(--turf-green); }
.cmp-no  { color: var(--text-muted); }

/* ═══ INSTALL STEPS (download page) ═══ */
.install-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.install-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
}
.install-card .ic-icon {
    width: 56px; height: 56px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34,197,94,0.08); border-radius: 16px; color: var(--turf-green);
}
.install-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.install-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }
.install-steps { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.install-steps li { position: relative; padding-left: 30px; font-size: 0.85rem; color: #d1d5db; counter-increment: step; }
.install-steps { counter-reset: step; }
.install-steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: #000;
    background: var(--turf-green); border-radius: 50%;
}
.qr-box {
    width: 150px; height: 150px; margin: 0 auto;
    border: 1.5px dashed var(--border-green); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.72rem; text-align: center; padding: 12px;
}

/* ═══ USE-CASE PAGES ═══ */
.usecase-pains {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
}
.pain-card .pc-icon { color: var(--turf-green); margin-bottom: 12px; }
.pain-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.pain-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }
.testimonial-slot {
    max-width: 720px; margin: 56px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border-green);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.testimonial-slot p { font-size: 1.15rem; color: var(--text-main); font-style: italic; line-height: 1.6; margin-bottom: 16px; }
.testimonial-slot .ts-attr { font-size: 0.85rem; color: var(--text-muted); }

/* ═══ SECTION UTILITY ═══ */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-deep) 0%, #0a0f0a 50%, var(--bg-deep) 100%); }

/* ═══ PRICING (2-plan + trial) ═══ */
.pricing-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.pricing-note {
    text-align: center;
    max-width: 640px;
    margin: 32px auto 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══ HERO STORE BADGES ROW (home) ═══ */
.hero-store-row { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-store-note { font-size: 0.78rem; color: var(--text-muted); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .install-cols { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    .usecase-pains { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
    .feature-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
    .feature-row.reverse .feature-row-media { order: 0; }
    .feature-row-text { text-align: center; }
    .spec-list { text-align: left; max-width: 340px; margin: 0 auto; }
    .related-grid { grid-template-columns: 1fr; }
    .subhero { padding: 120px 0 48px; }
    .pricing-grid-2 { grid-template-columns: 1fr; max-width: 400px; }
}
