/* PhotoPuzzle — base styles (Phase 0) */

:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-muted: #5c6370;
    --color-primary: #0066cc;
    --color-primary-hover: #0052a3;
    --color-border: #dee2e6;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(960px, 100% - 2rem);
    margin-inline: auto;
}

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
}

.nav-link {
    color: var(--color-muted);
    text-decoration: none;
    margin-left: 1rem;
}

.site-main {
    flex: 1;
}

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* Hero */
.hero {
    padding: 3rem 0 2rem;
}

.hero-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    text-align: center;
    width: 140px;
}

.demo-card-label {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.demo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
}

.photo-before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.photo-after {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
}

.grid-preview {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.demo-arrow {
    font-size: 1.5rem;
    color: var(--color-muted);
}

/* Steps */
.steps {
    padding: 2rem 0 3rem;
}

.steps-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.step-num {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.step h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.step h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Status */
.status {
    padding-bottom: 3rem;
}

.status h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.status-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.status-list li:last-child {
    border-bottom: none;
}

.status-ok {
    color: #2e7d32;
}

.status-fail {
    color: #c62828;
}

/* 404 */
.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-page h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.error-lead {
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

/* Landing polish */

.section-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    text-align: center;
}

.section-lead {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--color-muted);
}

.hero-visual-rich {
    justify-content: center;
}

.hero-transform {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-photo {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    text-align: center;
    width: min(180px, 42vw);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hero-photo-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 600;
}

.hero-transform-arrow {
    font-size: 1.75rem;
    color: var(--color-primary);
    font-weight: 700;
}

.hero-grid-mock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    padding: 6px;
    min-height: 90px;
    align-content: center;
}

.hero-grid-mock span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 2px 0;
}

.showcase {
    padding: 2rem 0 3rem;
}

.showcase-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.showcase-card {
    display: block;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

.showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.showcase-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.showcase-card-label {
    display: block;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-band {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.cta-band-inner {
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.status-list-compact {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-nav a {
    color: var(--color-muted);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.page-content {
    padding: 2rem 0 3rem;
}

.page-lead {
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

.prose h2 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.15rem;
}

.prose p,
.prose ul {
    color: var(--color-muted);
}

.prose ul {
    padding-left: 1.25rem;
}

.page-back {
    margin-top: 2rem;
}
