/* SnapBrief - Premium Mac-native styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
    background-color: #ffffff;
    color: #333333;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography — headings black, body #333 */
h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #000000;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: #000000;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #000000;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #000000;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1.5rem;
}

.text-large {
    font-size: 1.375rem;
    line-height: 1.6;
    color: #333333;
}

.text-small {
    font-size: 0.9rem;
    color: #666666;
}

.text-center {
    text-align: center;
}

/* Layout — centered sections, max content width */
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.section-hero {
    padding: 80px 0;
}

.section-hero h1 {
    margin-bottom: 1rem;
}

.section-hero .container-narrow > .text-large {
    margin-bottom: 0;
}

/* Hero CTAs — 24px from subtitle, consistent button footprint */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-sizing: border-box;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-large {
    padding: 80px 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav.nav--text {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    text-decoration: none;
    color: #555555;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    color: #111111;
    opacity: 0.92;
    border-bottom-color: rgba(255, 90, 31, 0.45);
}

.nav-link--active {
    font-weight: 600;
    color: #000000;
    border-bottom-color: #ff5a1f;
}

.nav-link--active:hover {
    border-bottom-color: #ff5a1f;
}

.btn-header-cta {
    min-height: 48px;
    min-width: 168px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header-cta--current {
    box-shadow: 0 0 0 2px #000000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 1.25rem;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.88;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #000000;
    border-radius: 8px;
    margin-right: 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon::before {
    content: '';
    width: 16px;
    height: 12px;
    background: #ffffff;
    border-radius: 2px;
    position: relative;
}

.logo-icon::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #ff5a1f;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    right: 6px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transform: scale(1);
    transform-origin: center;
}

.btn-primary {
    background: #ff5a1f;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #d94818;
    transform: scale(1.02);
}

.btn-primary:focus-visible {
    outline: 2px solid #d94818;
    outline-offset: 2px;
}

.btn:disabled {
    transform: none !important;
    cursor: not-allowed;
}

.btn-secondary {
    background: #ffffff;
    color: #333333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #ff5a1f;
    color: #ff5a1f;
    transform: scale(1.02);
}

.btn-large {
    min-height: 52px;
    min-width: 200px;
    padding: 1.125rem 2rem;
    font-size: 1.0625rem;
    box-sizing: border-box;
}

.btn-group {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 2.5rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    border-color: #e8e8e8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.card-highlighted {
    border: 2px solid #ff5a1f;
    position: relative;
}

.card-highlighted:hover {
    box-shadow: 0 10px 40px rgba(255, 90, 31, 0.12);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff5a1f;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Features */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-number {
    width: 32px;
    height: 32px;
    background: #ff5a1f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
}

.feature-content p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Use cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.use-case:hover {
    border-color: #e8e8e8;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.use-case h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.use-case p {
    font-size: 0.9rem;
    color: #333333;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 3rem 0;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: #666666;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ff5a1f;
}

.footer-copyright {
    color: #666666;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: #666666;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #ff5a1f;
}

/* Support page specific */
.support-section {
    margin-bottom: 3rem;
}

.support-section h3 {
    color: #ff5a1f;
    margin-bottom: 1rem;
}

.support-section p {
    margin-bottom: 1rem;
}

.support-section ul {
    list-style: none;
    padding-left: 0;
}

.support-section li {
    padding: 0.5rem 0;
    color: #333333;
}

.support-section li::before {
    content: "•";
    color: #ff5a1f;
    font-weight: bold;
    width: 1em;
    margin-right: 0.5em;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .container-narrow {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
        font-weight: 800;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .section-hero {
        padding: 56px 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-nav-wrap {
        justify-content: center;
    }

    .nav.nav--text {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem 1.25rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-2,
    .grid-3,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn,
    .btn-group .btn.btn-large {
        width: 100%;
        max-width: 320px;
        min-width: unset;
    }
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.text-accent { color: #ff5a1f; }

/* Content pages */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000000;
}

.content-wrapper h4 {
    margin-bottom: 0.5rem;
    color: #000000;
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-wrapper ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Related links */
.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.related-links .card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.related-links .card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border-color: #e8e8e8;
}

.related-links .card h4 {
    color: #ff5a1f;
    margin-bottom: 0.5rem;
}

/* Use case links */
.use-case h4 a {
    color: #ff5a1f;
    text-decoration: none;
}

.use-case h4 a:hover {
    text-decoration: underline;
}