/* Card Curator marketing site
   Clean indie-app aesthetic — system fonts, generous whitespace,
   minimal accent. Designed to feel native to macOS. */

:root {
    --accent: #007AFF;
    --accent-hover: #0062CC;
    --text: #111417;
    --text-secondary: #565B61;
    --text-tertiary: #8B8E93;
    --bg: #FFFFFF;
    --bg-elevated: #F7F8FA;
    --bg-emphasis: #F0F2F5;
    --border: #E4E6EA;
    --max-width: 1080px;
    --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #0A84FF;
        --accent-hover: #4DA3FF;
        --text: #F2F4F7;
        --text-secondary: #B0B5BB;
        --text-tertiary: #7A7E84;
        --bg: #0F1115;
        --bg-elevated: #181B20;
        --bg-emphasis: #22262C;
        --border: #2C3036;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

/* ─── Header ─── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(15, 17, 21, 0.85);
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 17px;
}
.brand:hover { text-decoration: none; color: var(--text); }

.brand-mark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--accent), #5856D6);
    flex-shrink: 0;
    position: relative;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.site-header nav {
    display: flex;
    gap: 28px;
}

.site-header nav a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}
.site-header nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ─── Beta pill ─── */

.beta-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.10);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(0, 122, 255, 0.20);
}

@media (prefers-color-scheme: dark) {
    .beta-pill {
        background: rgba(10, 132, 255, 0.18);
        border-color: rgba(10, 132, 255, 0.30);
    }
}

.beta-pill-card {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 12px;
    padding: 4px 10px;
}

/* ─── Hero ─── */

.hero {
    padding: 96px 0 48px;
    text-align: center;
}

.hero .beta-pill {
    margin-bottom: 24px;
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero-sub {
    margin-top: 20px;
    font-size: 21px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ─── Buttons ─── */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg-emphasis);
    color: var(--text);
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

/* ─── Hero screenshot placeholder ─── */

.hero-screenshot {
    padding: 24px 0 96px;
}

.screenshot-frame {
    /* Aspect ratio matches the source hero image (2885 × 1173 ≈ 2.46:1).
       Reserving the box keeps the layout stable while the image streams
       in (no cumulative layout shift).
       No background, border, or shadow — the screenshot's macOS window
       already carries its own chrome (traffic lights, rounded corners,
       subtle drop shadow baked into the PNG). Re-decorating with CSS
       made the hero look double-framed. */
    width: 100%;
    aspect-ratio: 2885 / 1173;
}

.screenshot-frame img {
    /* Fill the frame edge-to-edge. `display: block` removes the inline
       baseline gap that would otherwise leave a 4-ish-pixel sliver of
       background showing under the image on some browsers. */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder styling kept for back-compat with any other section that
   reuses `.placeholder` semantics. The hero now ships a real image, so
   this rule no longer applies on the home page. */
.screenshot-frame.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
    padding: 32px;
    text-align: center;
}

/* ─── Section ─── */

.section {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

h2 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-align: center;
}

.section-lead {
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ─── Features grid ─── */

.feature-grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ─── Snippet icons (features + privacy) ─── */

/* One shared rule for both surfaces. Each icon is a Lucide-style stroke
   SVG with `stroke="currentColor"` and `fill="none"` baked in, so the
   color cascade picks up the accent automatically. `aria-hidden` on the
   SVG itself keeps the icon out of the accessibility tree — the h3 is
   the meaningful label. */
.snippet-icon {
    display: block;
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    color: var(--accent);
}

/* ─── Privacy section ─── */

.privacy-section {
    background: var(--bg-elevated);
}

.privacy-points {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.privacy-point h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.privacy-point p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.privacy-link {
    margin-top: 48px;
    text-align: center;
    font-size: 15px;
}

/* ─── Pricing ─── */

.pricing-card {
    margin: 64px auto 0;
    max-width: 480px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.pricing-card-head {
    margin-bottom: 32px;
}

.price {
    font-size: 56px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    display: block;
    line-height: 1;
}

.price-detail {
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 14px;
    display: block;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 0 auto 32px;
    max-width: 360px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 24px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.pricing-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ─── FAQ ─── */

.faq-section .faq {
    margin-top: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.faq-section .faq:last-of-type { border-bottom: none; }

.faq h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.faq p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ─── Footer ─── */

.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    margin-top: 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col .brand {
    margin-bottom: 8px;
}

.footer-col p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
}
.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ─── Legal pages ─── */

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.legal-page h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.legal-page .updated {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 22px;
    text-align: left;
    margin: 40px 0 12px;
    color: var(--text);
}

.legal-page h3 {
    font-size: 17px;
    margin: 24px 0 8px;
    color: var(--text);
}

.legal-page p,
.legal-page li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page strong {
    color: var(--text);
}

/* ─── Feature pages ─── */

.feature-page-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.feature-hero {
    position: relative;
    padding: 72px 0 32px;
    text-align: center;
    overflow: hidden;
}

/* Static gradient mesh behind the hero — quiet color without competing
   with the headline. */
.feature-hero::before {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(circle at 25% 30%, rgba(0, 122, 255, 0.10), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(88, 86, 214, 0.08), transparent 45%);
    z-index: -1;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .feature-hero::before {
        background:
            radial-gradient(circle at 25% 30%, rgba(10, 132, 255, 0.18), transparent 45%),
            radial-gradient(circle at 75% 70%, rgba(94, 92, 230, 0.14), transparent 45%);
    }
}

.feature-hero .beta-pill {
    margin-bottom: 20px;
}

.feature-hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.feature-hero-sub {
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 32px;
}

.feature-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.feature-screenshot {
    display: block;
    width: 100%;
    height: auto;
    margin: 48px 0 0;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.feature-section {
    padding: 72px 0;
    border-top: 1px solid var(--border);
}

.feature-section h2 {
    text-align: left;
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-section .section-lead {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 32px;
}

.feature-how-grid {
    display: grid;
    /* Fixed 2-column layout so the typical 4-step section forms a clean 2×2
       block rather than wrapping 3+1 (orphan tile in the second row).
       Collapses to 1 column on narrow screens via the @media block below. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
    margin-top: 40px;
}

.feature-how-step {
    position: relative;
    padding-left: 56px;
}

.feature-how-step .step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.10);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid rgba(0, 122, 255, 0.20);
    /* Quiet pulse — telegraphs that the section is interactive/dynamic. */
    animation: stepNumPulse 4s ease-in-out infinite;
}

.feature-how-step:nth-child(2) .step-num { animation-delay: 0.6s; }
.feature-how-step:nth-child(3) .step-num { animation-delay: 1.2s; }
.feature-how-step:nth-child(4) .step-num { animation-delay: 1.8s; }

@keyframes stepNumPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
    50%      { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0.07); }
}

@media (prefers-color-scheme: dark) {
    .feature-how-step .step-num {
        background: rgba(10, 132, 255, 0.18);
        border-color: rgba(10, 132, 255, 0.30);
    }
}

.feature-how-step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-how-step p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.feature-builton {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 0;
}

.feature-builton h2 {
    text-align: left;
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-builton p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 14px;
    max-width: 760px;
}

.feature-builton ul {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
}

.feature-builton li {
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-builton li::before {
    content: "·";
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-weight: 700;
}

.feature-builton strong {
    color: var(--text);
}

.feature-related {
    padding: 72px 0;
    border-top: 1px solid var(--border);
}

.feature-related h2 {
    text-align: left;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-related-card {
    display: block;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-related-card:hover {
    border-color: var(--accent);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
}

.feature-related-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-related-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.feature-related-card .arrow {
    color: var(--accent);
    margin-top: 12px;
    font-size: 14px;
    display: inline-block;
}

.feature-cta {
    padding: 72px 0 96px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.feature-cta h2 {
    font-size: 30px;
    margin-bottom: 16px;
}

.feature-cta p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
}

.feature-learn-more {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.feature-learn-more:hover {
    text-decoration: underline;
}

/* ─── Features hub ─── */

.hub-intro {
    padding: 72px 0 24px;
    text-align: center;
}

.hub-intro h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hub-intro p {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.feature-hub-grid {
    margin-top: 48px;
    padding-bottom: 96px;
    display: grid;
    /* 16 cards: 4 columns × 4 rows on desktop, 2 × 8 on tablet, 1 × 16 on
       mobile. Always a complete rectangle — no orphan in the last row. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 980px) {
    .feature-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .feature-hub-grid {
        grid-template-columns: 1fr;
    }
}

.feature-hub-card {
    display: block;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-hub-card:hover {
    border-color: var(--accent);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.feature-hub-card .snippet-icon {
    margin-bottom: 14px;
}

.feature-hub-card h2 {
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-hub-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.feature-hub-card .arrow {
    margin-top: 14px;
    color: var(--accent);
    font-size: 14px;
    display: inline-block;
}

/* ─── Responsive ─── */

@media (max-width: 720px) {
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    .hero { padding: 64px 0 32px; }
    .section { padding: 64px 0; }
    .hero-sub { font-size: 18px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .pricing-card { padding: 28px; }
    .price { font-size: 44px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .site-header nav { gap: 16px; }
    .site-header nav a { font-size: 14px; }
    .feature-hero h1 { font-size: 34px; }
    .feature-hero { padding: 48px 0 24px; }
    .feature-section { padding: 48px 0; }
    .feature-builton { padding: 48px 0; }
    .feature-related { padding: 48px 0; }
    .feature-cta { padding: 48px 0 64px; }
    .feature-hero-actions { flex-direction: column; }
    .feature-hero-actions .btn { width: 100%; text-align: center; }
    .feature-how-grid { grid-template-columns: 1fr; gap: 32px; }
    .hub-intro { padding: 48px 0 16px; }
    .hub-intro h1 { font-size: 34px; }
}

/* ─── Reduced motion ─── */
/* Honor the OS preference. Marketing motion is decorative; turning it off
   should never hide content or break layout — just freeze the loops. */
@media (prefers-reduced-motion: reduce) {
    .feature-how-step .step-num {
        animation: none !important;
    }
}
