/* Pausify Design System */
:root {
    --primary: #6750A4;
    --primary-light: #7F67BE;
    --bg: #1C1B1F;
    --surface: #2B2930;
    --surface-light: #3F3D45;
    --text: #E6E1E5;
    --text-muted: #CAC4D0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-light);
    padding: 16px 20px;
}
.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--primary-light);
    text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* --- Hero (landing page) --- */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}
.hero-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    border-radius: 24px;
}
.hero h1 {
    font-size: 2.5em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .tagline {
    font-size: 1.3em;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.2s, transform 0.2s;
}
.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Features Grid --- */
.features, .screenshots, .how-it-works, .privacy-section, .from-blog {
    padding: 60px 20px;
}
.screenshots, .how-it-works {
    background: var(--surface);
}
.features h2, .screenshots h2, .how-it-works h2, .privacy-section h2, .from-blog h2 {
    text-align: center;
    color: var(--primary-light);
    margin-bottom: 48px;
    font-size: 1.8em;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.2em; }
.feature-card p { color: var(--text-muted); font-size: 0.95em; }

/* --- Screenshots --- */
.screenshots-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
}
.screenshot {
    width: 180px;
    min-width: 180px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.screenshot:hover { transform: scale(1.05); }

/* --- How It Works --- */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.step { text-align: center; max-width: 200px; }
.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9em; }

/* --- Privacy Section --- */
.privacy-section { text-align: center; }
.privacy-section p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px;
}
.privacy-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.badge {
    background: var(--surface);
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 0.9em;
}

/* --- From the Blog (landing page) --- */
.from-blog { background: var(--surface); }
.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.blog-card {
    background: var(--bg);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card h3 { margin-bottom: 8px; font-size: 1.1em; }
.blog-card .meta {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-bottom: 12px;
}
.blog-card p { color: var(--text-muted); font-size: 0.95em; }
.from-blog .more-link {
    text-align: center;
}

/* --- Blog Listing --- */
.blog-header {
    text-align: center;
    padding: 60px 20px 40px;
}
.blog-header h1 {
    font-size: 2.2em;
    color: var(--primary-light);
    margin-bottom: 16px;
}
.blog-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.cta-button--blog-header {
    margin-top: 24px;
    font-size: 1em;
    padding: 12px 28px;
}
.blog-list {
    padding: 0 20px 60px;
}
.blog-list .blog-cards {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Single Post --- */
.post {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.post-header { margin-bottom: 40px; }
.post-header h1 {
    font-size: 2em;
    margin-bottom: 12px;
    line-height: 1.3;
}
.post-meta {
    color: var(--text-muted);
    font-size: 0.9em;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    background: var(--surface);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    color: var(--primary-light);
}
.post-content h2 {
    color: var(--primary-light);
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.4em;
}
.post-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1em;
}
.post-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}
.post-content ul, .post-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--text-muted);
}
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
}
.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}
.post-content code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.post-content pre {
    background: var(--surface);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

/* --- Blog CTA --- */
.blog-cta {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}
.blog-cta h3 { margin-bottom: 12px; font-size: 1.3em; }
.blog-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Privacy Page --- */
.privacy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.privacy-page .content-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
}
.privacy-page h1 { color: var(--primary); margin-bottom: 8px; }
.privacy-page h2 { color: var(--primary); margin-top: 32px; margin-bottom: 16px; font-size: 1.4em; }
.privacy-page h3 { margin-top: 24px; margin-bottom: 12px; font-size: 1.1em; }
.privacy-page p { margin-bottom: 16px; color: var(--text-muted); }
.privacy-page ul { margin-left: 24px; margin-bottom: 16px; color: var(--text-muted); }
.privacy-page li { margin-bottom: 8px; }
.privacy-page .date { color: var(--text-muted); font-size: 0.9em; margin-bottom: 24px; }
.privacy-page .summary { background: var(--primary); padding: 20px; border-radius: 12px; margin-top: 32px; }
.privacy-page .summary p { color: white; margin-bottom: 8px; }
.privacy-page .summary p:last-child { margin-bottom: 0; }
.privacy-page .summary h2 { color: white; margin-top: 0; }
.privacy-page hr { border: none; border-top: 1px solid var(--surface-light); margin: 32px 0; }

/* --- Footer --- */
footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--surface-light);
}
footer p { color: var(--text-muted); font-size: 0.9em; }
footer a { color: var(--primary-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- Cover Images --- */
.post-cover {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}
.post-cover img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-card-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16 / 9;
}
.blog-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-cover--placeholder {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.blog-card-content { }

/* --- Responsive --- */
@media (max-width: 1000px) {
    .screenshot { width: 160px; min-width: 160px; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 2em; }
    .hero .tagline { font-size: 1.1em; }
    .features-grid, .blog-cards { grid-template-columns: 1fr; }
    .screenshot { width: 140px; min-width: 140px; }
    .post-header h1 { font-size: 1.6em; }
}
