/* ── Shared styles for all /try-on/* pages ── */

:root {
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-50:  #EFF6FF;
    --text:     #0F172A;
    --text-secondary: #475569;
    --bg:       #FAFBFF;
    --border:   #E2E8F0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); }

/* ── Nav ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(250, 251, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1240px; width: 100%; height: 72px;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.nav-logo span { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
/* Explicit reset so global li styles don't shift nav items */
.nav-links li { display: flex; align-items: center; margin: 0; padding: 0; }
.nav-links a { display: flex; align-items: center; height: 72px; color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 500; line-height: 1; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 9px 22px;
    background: var(--text); color: #fff;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif; font-size: 0.84rem; font-weight: 600; line-height: 1;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--blue-700); transform: translateY(-1px); }
.hamburger {
    display: none; cursor: pointer; flex-direction: column; gap: 5px;
    background: none; border: none;
    min-width: 44px; height: 72px;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 900px) {
    .nav-links { display: none !important; }
    .nav-links.open {
        display: flex !important; flex-direction: column; align-items: flex-start;
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: rgba(250, 251, 255, 0.98); backdrop-filter: blur(20px);
        padding: 32px 24px; gap: 4px; z-index: 200;
    }
    .nav-links.open li { width: 100%; }
    .nav-links.open a { height: 48px; font-size: 1rem; }
    .hamburger { display: flex; }
}

/* ── Page hero ── */
.page-hero { padding: 96px 24px 16px; text-align: center; }
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 700px; margin: 0 auto 10px; color: var(--text); }
.page-hero p { font-size: 0.9rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 6px; line-height: 1.6; }
.hero-note { font-size: 0.8rem; color: var(--text-secondary); margin-top: 12px; }

/* ── Content ── */
.content { max-width: 820px; margin: 0 auto; padding: 20px 24px 80px; }
.pg-outer { max-width: 900px; margin: 0 auto; padding: 0 24px; }
h2 { font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin: 48px 0 14px; }
h3 { font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 28px 0 10px; }
p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
ul, ol { padding-left: 22px; margin-bottom: 16px; }
/* Scoped to .content so nav li is not affected */
.content li { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.6; }
strong { color: var(--text); }
a { color: var(--blue-600); }

/* ── Components ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.step { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.step-num { width: 36px; height: 36px; background: var(--blue-600); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.step h3 { margin-top: 0; font-size: 0.95rem; }
.step p { font-size: 0.85rem; margin-bottom: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.cat-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.cat-card h3 { font-size: 0.95rem; margin-top: 0; margin-bottom: 6px; }
.cat-card p { font-size: 0.85rem; margin-bottom: 0; }
.cta-box { background: linear-gradient(135deg, #2563EB, #1D4ED8); color: white; padding: 40px; border-radius: 20px; text-align: center; margin: 48px 0; }
.cta-box h2 { color: white; margin-top: 0; font-size: 1.6rem; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-box a { background: white; color: var(--blue-600); padding: 13px 36px; border-radius: 10px; text-decoration: none; font-weight: 700; display: inline-block; margin-top: 20px; font-size: 0.95rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q { font-weight: 700; color: var(--text); font-size: 0.95rem; margin-bottom: 8px; }
.faq-a { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.related h3 { font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; margin-top: 0; }
.related-links { display: grid; gap: 12px; }
.related-links a { color: var(--blue-600); font-size: 0.92rem; text-decoration: none; }
.related-links a:hover { text-decoration: underline; }
.breadcrumb { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 32px; }
.breadcrumb a { color: var(--blue-600); text-decoration: none; }

@media (max-width: 640px) {
    .page-hero h1 { font-size: 1.3rem; }
    .steps { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 28px 20px; }
    .pg-outer { padding: 0 16px; }
}

/* ── Store modal ── */
.store-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); backdrop-filter: blur(8px); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.store-modal { background: #fff; border-radius: 20px; padding: 40px; max-width: 440px; width: 100%; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(15,23,42,0.1); }
.store-modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 1.2rem; }
.store-modal h3 { font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 1.3rem; font-weight: 700; margin: 16px 0 8px; }
.store-modal p { color: var(--text-secondary); font-size: 0.9rem; }
.store-modal-btns { display: grid; gap: 12px; margin-top: 24px; }
.store-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid #E2E8F0; }
.store-btn.apple { background: #000; color: #fff; border: none; }
.store-btn.google { background: #fff; color: #000; }
