/* ════════════════════════════════════════════════════════════
   Bayarsama — Product Page Styles
   Extracted from bayarsama/index.html for cacheability.
   ════════════════════════════════════════════════════════════ */

/* ── Page-specific variables — matches Bayarsama app theme ── */
:root {
    /* Shared theme overrides (taro/honey/sage palette) */
    --primary: #5B4E6B;
    --primary-hover: #4A3F58;
    --secondary: #A67D52;
    --secondary-light: #C4A57A;
    --base: #F7F4F0;
    --base-alt: #FFFCF8;
    --light: #E8E3DE;

    /* Bayarsama brand tokens */
    --byr-primary: #5B4E6B;       /* taro */
    --byr-accent: #7A6B8C;        /* light taro */
    --byr-purple: #5B4E6B;        /* taro */
    --byr-green: #4C644D;         /* sage */
    --byr-blue: #A67D52;          /* honey */

    --byr-primary-dark: #4A3F58;
    --byr-purple-light: #9B8FB0;
    --byr-blue-light: #C4A57A;
    --byr-green-light: #6B8B6D;
    --charges-bg: #F7F0E8;
    --charges-border: #E8D8C4;
    --disabled: #C5BFB9;
    --tab-border: #E8E3DE;
    --shadow-phone-red: 0 24px 60px rgba(91, 78, 107, 0.25);
    --shadow-phone-purple: 0 24px 60px rgba(91, 78, 107, 0.25);
    --shadow-phone-blue: 0 24px 60px rgba(166, 125, 82, 0.25);
    --shadow-phone-green: 0 24px 60px rgba(76, 100, 77, 0.25);
    --shadow-dropdown: 0 4px 12px rgba(91, 78, 107, 0.08);
    --shadow-btn: 0 2px 8px rgba(91, 78, 107, 0.15);
    --overlay-white-subtle: rgba(255, 255, 255, 0.05);
    --overlay-white-border: rgba(255, 255, 255, 0.1);
    --overlay-white-medium: rgba(255, 255, 255, 0.4);
    --overlay-white-text: rgba(255, 255, 255, 0.7);
    --badge-green-bg: #E5EDE5;
    --fav-red-bg: #EDE8F2;
    --fav-blue-bg: #F5EDE3;
    --fav-yellow-bg: #F5EDE3;
}

/* ── Page-specific nav overrides ── */
.nav-links .btn-download { background: var(--byr-primary); color: var(--white); padding: 10px 24px; border-radius: 12px; font-weight: 600; transition: background 0.2s; }
.nav-links .btn-download:hover { background: var(--byr-primary-dark); color: var(--white); }

/* ── Hero ── */
.hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 60px 24px;
    background: linear-gradient(180deg, var(--base-alt) 0%, var(--base) 100%);
}

.hero-text { max-width: 520px; }
.hero-text .app-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--light); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 24px; border: 1px solid var(--light); }
.hero-text h1 { font-size: 36px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: var(--dark); }
.hero-text h1 .highlight { color: var(--primary); }
.hero-text p { font-size: 19px; color: var(--gray); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.btn-appstore { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: var(--white); padding: 14px 28px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 16px; transition: opacity 0.2s; }
.btn-appstore:hover { opacity: 0.85; }
.btn-appstore-sub { font-size: 11px; opacity: 0.7; font-weight: 400; }
.btn-appstore-icon { font-size: 22px; }
.hero-price { font-size: 14px; color: var(--gray); margin-top: 16px; }
.hero-price strong { color: var(--dark); }

.hero-currencies { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.currency-tag { background: var(--white); border: 1px solid var(--light); padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--gray); }
.currency-tag-link { text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.currency-tag-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── Phone Mockup (Shared) ── */
.phone-mockup {
    width: 260px;
    min-width: 260px;
    border-radius: 44px;
    overflow: hidden;
    box-shadow: var(--shadow-phone-red);
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.phone-mockup.purple-phone { box-shadow: var(--shadow-phone-purple); }
.phone-mockup.blue-phone { box-shadow: var(--shadow-phone-blue); }
.phone-mockup.green-phone { box-shadow: var(--shadow-phone-green); }

.showcase-label-primary,
.showcase-label-purple,
.showcase-label-blue,
.showcase-label-green,
.showcase-label-secondary { color: var(--secondary); }

.ex-value-primary,
.ex-value-purple,
.ex-value-accent { color: var(--primary); }

.ex-value-green { color: var(--byr-green); }

/* ── Feature Showcase (alternating left/right) ── */
.feature-showcase {
    padding: 60px 24px;
}

.feature-showcase:nth-child(even) { background: var(--base); }
.feature-showcase:nth-child(odd) { background: var(--base-alt); }

.showcase-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
}

.showcase-inner.reverse { flex-direction: column; }

.showcase-text { max-width: 520px; }
.showcase-text .showcase-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.showcase-text h2 { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--dark); }
.showcase-text p { font-size: 16px; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }

.showcase-details { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.showcase-details li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--dark); line-height: 1.6; }
.showcase-details li .detail-icon { font-size: 16px; width: 24px; min-width: 24px; text-align: center; flex-shrink: 0; }
.showcase-details li strong { font-weight: 600; }

/* ── Gold divider ── */
.gold-divider {
    border: none;
    height: 1px;
    background: var(--tertiary);
    max-width: 200px;
    margin: 0 auto;
    opacity: 0.5;
}

/* ── Currencies Section ── */
.currencies-section {
    padding: 60px 24px;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.currencies-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.currencies-section .subtitle { font-size: 18px; color: var(--footer-text); margin-bottom: 48px; }

.currency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.currency-card {
    background: var(--overlay-white-subtle);
    border: 1px solid var(--overlay-white-border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
}

.currency-card .curr-symbol { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.currency-card .curr-name { font-size: 12px; color: var(--footer-text); }
.currency-card .curr-method { font-size: 10px; color: var(--footer-text); margin-top: 4px; font-weight: 600; }

/* ── How It Works ── */
.how-it-works {
    padding: 60px 24px;
    background: var(--base);
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.section-header p { font-size: 18px; color: var(--gray); }

.steps { display: flex; flex-direction: column; gap: 24px; max-width: 1080px; margin: 0 auto; }

.step-card {
    flex: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--light);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.step-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.step-card .step-example { background: var(--base); border-radius: 10px; padding: 12px; margin-top: 16px; font-size: 12px; color: var(--dark); text-align: left; border: 1px solid var(--light); }
.step-card .step-example .ex-row { display: flex; justify-content: space-between; padding: 3px 0; }
.step-card .step-example .ex-label { color: var(--gray); }
.step-card .step-example .ex-value { font-weight: 600; }

.step-arrow {
    display: none;
    align-items: center;
    font-size: 24px;
    color: var(--disabled);
    padding-top: 40px;
}

/* ── Pricing ── */
.pricing { padding: 60px 24px; background: var(--base-alt); }

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 840px; margin: 0 auto; }

.pricing-card { background: var(--white); border-radius: 20px; padding: 40px; border: 2px solid var(--light); position: relative; }
.pricing-card.featured { border-color: var(--secondary); }
.pricing-card.featured::before { content: 'BEST VALUE'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: var(--white); padding: 4px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }

.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.pricing-card .price { font-size: 36px; font-weight: 800; color: var(--dark); margin: 16px 0; }
.pricing-card .price span { font-size: 16px; color: var(--gray); font-weight: 400; }
.pricing-card .price-note { font-size: 13px; color: var(--gray); margin-bottom: 24px; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { font-size: 14px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '\2713'; color: var(--secondary); font-weight: 700; }
.pricing-features li.disabled { color: var(--disabled); }
.pricing-features li.disabled::before { content: '\2014'; color: var(--disabled); }

/* ── CTA ── */
.cta { padding: 60px 24px; background: var(--dark); text-align: center; color: var(--white); }
.cta h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--white); }
.cta p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--dark); padding: 16px 32px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 17px; transition: transform 0.2s; }
.btn-cta:hover { transform: scale(1.03); }

/* ── Support ── */
.support { padding: 60px 24px; background: var(--base); text-align: center; }
.support p { font-size: 16px; color: var(--gray); }
.support a { color: var(--secondary); text-decoration: none; font-weight: 600; }

.nav-links a.nav-active { color: var(--primary); }

/* Reset .btn-download inside fullscreen overlay — strip button styling */
.nav-links.nav-open .btn-download {
    background: none;
    color: var(--dark);
    padding: 20px 0;
    border-radius: 0;
}

.nav-links.nav-open .btn-download:hover {
    background: none;
    color: var(--primary);
}

/* ════════════════════════════════════════════════════════════
   Responsive: Tablet (min-width: 768px)
   ════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .hero { flex-direction: row; padding: 100px 60px; gap: 80px; }
    .hero-text h1 { font-size: 52px; }
    .phone-mockup { width: 300px; min-width: 300px; }
    .feature-showcase { padding: 100px 60px; }
    .showcase-inner { flex-direction: row; gap: 80px; }
    .showcase-inner.reverse { flex-direction: row-reverse; }
    .showcase-text h2 { font-size: 36px; }
    .currencies-section { padding: 80px 60px; }
    .currencies-section h2 { font-size: 40px; }
    .currency-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .how-it-works { padding: 100px 60px; }
    .steps { flex-direction: row; }
    .step-arrow { display: flex; }
    .pricing { padding: 100px 60px; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header h2 { font-size: 40px; }
    .cta { padding: 80px 60px; }
    .cta h2 { font-size: 36px; }
    .support { padding: 60px 60px; }
}

/* ════════════════════════════════════════════════════════════
   Desktop (min-width: 1024px)
   ════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .hero-text h1 { font-size: 56px; }
    .currencies-section h2 { font-size: 44px; }
    .section-header h2 { font-size: 44px; }
    .showcase-text h2 { font-size: 40px; }
    .cta h2 { font-size: 40px; }
}
