/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-border: #e5e7eb;
    --color-card-bg: #f9fafb;
    --color-hero-bg: #f0f0ff;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1080px;
    --radius: 12px;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Nav */
.nav { border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--color-text); }
.nav-logo-img { width: 32px; height: 32px; }
.nav-logo-text { font-size: 20px; font-weight: 700; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--color-text-muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); text-decoration: none; }

/* Hero */
.hero {
    background: var(--color-hero-bg);
    padding: 80px 24px;
    text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 20px; color: var(--color-text-muted); margin-bottom: 32px; line-height: 1.5; }
.hero-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-badge { height: 44px; width: auto; }
.badge-link:hover { opacity: 0.85; }

/* Features */
.features { padding: 80px 24px; background: var(--color-bg); }
.features-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}
.feature { text-align: center; }
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { color: var(--color-text-muted); font-size: 16px; line-height: 1.6; }

/* Page (about, privacy) */
.page { padding: 48px 24px 80px; }
.page-inner { max-width: 720px; margin: 0 auto; }
.page-inner h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.last-updated { color: var(--color-text-muted); margin-bottom: 32px; }
.text-section { margin-bottom: 32px; }
.text-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.text-section p { margin-bottom: 12px; }
.text-section ul, .text-section ol { margin-left: 24px; margin-bottom: 12px; }
.text-section li { margin-bottom: 8px; }
.steps-list { margin-left: 24px; }
.values-list { list-style: none; margin-left: 0; }
.values-list li { margin-bottom: 8px; }
.cta-section { text-align: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.cta-section h2 { margin-bottom: 16px; }

/* Share pages */
.share-page { padding: 48px 24px 80px; }
.share-inner { max-width: 560px; margin: 0 auto; text-align: center; }

/* Item share card */
.share-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
}
.share-card.empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--color-text-muted);
}
.share-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-card-image .item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-hero-bg);
}
.placeholder-logo { width: 64px; height: 64px; opacity: 0.4; }
.share-card-info { padding: 20px; }
.item-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.item-price { font-size: 24px; font-weight: 800; color: var(--color-primary); margin-bottom: 4px; }
.item-domain { color: var(--color-text-muted); font-size: 14px; }

/* Collection */
.collection-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.collection-meta { color: var(--color-text-muted); margin-bottom: 24px; }

/* Item grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    text-align: left;
}
.grid-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.grid-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-card-image .item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.grid-card-info { padding: 12px; }
.grid-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-item-price { font-size: 16px; font-weight: 700; color: var(--color-primary); margin-bottom: 2px; }
.grid-item-domain { color: var(--color-text-muted); font-size: 12px; }

/* Fit */
.fit-title { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.fit-image-container { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.fit-image { width: 100%; border-radius: var(--radius); }
.fit-image-placeholder {
    padding: 48px 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    color: var(--color-text-muted);
}
.fit-image-placeholder .placeholder-logo { margin: 0 auto 12px; }
.fit-items-heading { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* Expired */
.expired-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 48px 24px;
    margin-bottom: 24px;
}
.expired-icon { margin-bottom: 16px; }
.expired-logo { width: 48px; height: 48px; margin: 0 auto; opacity: 0.5; }
.expired-card h1 { font-size: 24px; margin-bottom: 12px; }
.expired-card p { color: var(--color-text-muted); margin-bottom: 8px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    text-decoration: none;
}

/* Share actions */
.share-actions { margin-bottom: 32px; }
.share-store-badges { margin-bottom: 24px; }
.share-store-text { color: var(--color-text-muted); margin-bottom: 12px; font-size: 14px; }

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 24px 24px;
    text-align: center;
    background: var(--color-card-bg);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: var(--color-text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--color-primary); }
.footer-badges { margin-bottom: 16px; display: flex; gap: 12px; justify-content: center; }
.footer-copy { color: var(--color-text-muted); font-size: 14px; }

/* Responsive */
@media (max-width: 640px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 17px; }
    .hero { padding: 48px 20px; }
    .item-grid { grid-template-columns: 1fr; }
}
