/* ==========================================================================
   MOTO CALENDAR — Noir Atelier / Editorial Garage
   100% Autonomous Self-Hosted Stylesheet (Zero External CDNs)
   ========================================================================== */

/* Local Fonts: Cormorant Garamond (SIL OFL 1.1) */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/cormorant-garamond-cyrillic-400-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/cormorant-garamond-cyrillic-400-italic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* Local Fonts: Manrope (SIL OFL 1.1) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/manrope-cyrillic-500-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/manrope-cyrillic-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
    --bg: #0b0b0d;
    --bg-elevated: #131317;
    --bg-card: #17171c;
    --border: rgba(244, 241, 234, 0.1);
    --border-strong: rgba(244, 241, 234, 0.2);
    --text: #f4f1ea;
    --text-muted: #9e9990;
    --accent: #d49b54;
    --accent-hover: #e3ad68;
    --accent-soft: rgba(212, 155, 84, 0.12);
    --danger: #e05a5a;
    --success: #5cb88a;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 4px;
    --radius-lg: 8px;
    --container: 1220px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 11, 13, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #0b0b0d;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    padding: 96px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    filter: brightness(0.72) contrast(1.06);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 11, 13, 0.35) 0%,
        rgba(11, 11, 13, 0.55) 55%,
        rgba(11, 11, 13, 0.96) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.7rem);
    font-weight: 400;
    line-height: 1.04;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-lead {
    font-size: 1.08rem;
    color: rgba(244, 241, 234, 0.84);
    margin: 0 0 32px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.spec-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.spec-item {
    padding: 22px 24px;
    border-right: 1px solid var(--border);
}

.spec-item:last-child {
    border-right: none;
}

.spec-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* Sections */
.section {
    padding: 84px 0;
}

.section-tight {
    padding: 56px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 520px;
    margin: 10px 0 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    border-color: rgba(212, 155, 84, 0.45);
    transform: translateY(-4px);
}

.product-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f0f12;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 11, 13, 0.82);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 18px;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.link-arrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.product-card:hover .link-arrow {
    color: var(--accent);
}

/* Product Detail Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: start;
}

.detail-artwork {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.detail-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-meta-list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    border-top: 1px solid var(--border);
}

.detail-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.detail-meta-list span:first-child {
    color: var(--text-muted);
}

.price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 16px 0 24px;
}

.prose-block p {
    color: rgba(244, 241, 234, 0.84);
    margin: 0 0 14px;
}

/* Steps / Editorial Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
}

.step-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.step-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Forms & Checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    cursor: pointer;
}

.checkbox-row input {
    margin-top: 4px;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.checkbox-row a {
    color: var(--accent);
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.92rem;
    border: 1px solid var(--border);
}

.alert-error {
    background: rgba(224, 90, 90, 0.12);
    border-color: rgba(224, 90, 90, 0.45);
    color: #f6b4b4;
}

.alert-success {
    background: rgba(92, 184, 138, 0.12);
    border-color: rgba(92, 184, 138, 0.45);
    color: #b4ebd0;
}

.alert-info {
    background: var(--accent-soft);
    border-color: rgba(212, 155, 84, 0.4);
    color: var(--text);
}

/* Status & Download Pages */
.status-box {
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0;
    text-align: left;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.download-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Legal Tabs */
.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.legal-tab {
    padding: 10px 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.legal-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b0b0d;
    font-weight: 600;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 56px 0 36px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin: 0 0 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
}

/* Utility */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.summary-thumb {
    width: 84px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.summary-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spec-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .spec-item {
        border-bottom: 1px solid var(--border);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
    }
    .nav-links.is-open {
        display: flex;
    }
    .product-detail-grid,
    .checkout-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 68vh;
        padding: 64px 0 48px;
    }
    .section {
        padding: 56px 0;
    }
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(11, 11, 13, 0.96);
        border-top: 1px solid var(--border-strong);
        padding: 12px 18px;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }
    body.has-sticky-cta {
        padding-bottom: 78px;
    }
}
