/* Covely website — shared styles
   Brand follows the app: emerald (#047857 on light), one accent, neutral slate text. */

:root {
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e5e7eb;
    --text-main: #0f172a;
    --text-muted: #5b6577;
    --primary: #047857;          /* emerald 700 — AA with white text */
    --primary-hover: #065f46;
    --primary-bright: #10b981;   /* icons, accents */
    --primary-soft: #ecfdf5;
    --primary-border: #a7f3d0;
    --primary-gradient: linear-gradient(120deg, #047857 0%, #10b981 60%, #0d9488 100%);
    --font-stack: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 16px;
    --nav-h: 68px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    overflow-x: clip;
}

body {
    background-color: var(--bg-light);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

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

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Decorative background — clipped so it can never widen the page */
.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.blob-1 { top: -120px; right: -160px; background: rgba(16, 185, 129, 0.16); }
.blob-2 { bottom: -160px; left: -160px; background: rgba(13, 148, 136, 0.12); }
.blob-3 { display: none; }

/* ── Typography & utilities ─────────────────────────────────────────────── */

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.section-heading {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn-primary,
.btn-outline,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.22);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(4, 120, 87, 0.28);
}

.btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 1.05rem;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    max-width: 1240px;
    height: var(--nav-h);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
}

.nav-links .btn-primary {
    color: #fff;
    padding: 9px 20px;
    font-size: 0.92rem;
}

.nav-links .btn-primary:hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
}

.nav-toggle .icon-close { display: none; }
.navbar.open .nav-toggle .icon-open { display: none; }
.navbar.open .nav-toggle .icon-close { display: block; }

/* ── Language menu ───────────────────────────────────────────────────────── */

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    background: var(--primary-soft);
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--primary-border);
}

.lang-btn svg { transition: transform 0.2s; }
.lang-dropdown.open .lang-btn svg { transform: rotate(180deg); }

.lang-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    padding: 6px;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.lang-dropdown.open .lang-content,
.lang-dropdown:focus-within .lang-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) {
    .lang-dropdown:hover .lang-content {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-content a {
    color: var(--text-main) !important;
    padding: 10px 14px;
    display: block;
    font-size: 0.9rem;
    border-radius: 10px;
    font-weight: 500;
}

.lang-content a:hover {
    background: var(--primary-soft);
    color: var(--primary) !important;
}

.lang-content a[aria-current="true"] {
    background: var(--primary);
    color: #fff !important;
}

/* Mobile / tablet navigation */
@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1.5rem 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .navbar.open .nav-links { display: flex; }

    .nav-links > a:not(.btn-primary) {
        padding: 0.85rem 0.25rem;
        font-size: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        padding: 13px 20px;
        font-size: 1rem;
    }

    .lang-dropdown { margin-top: 1rem; }
    .lang-btn { width: 100%; justify-content: center; padding: 11px 14px; }

    .lang-content {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        display: none;
        margin-top: 8px;
    }

    .lang-dropdown.open .lang-content { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    padding: calc(var(--nav-h) + 6rem) 1.5rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.pill-badge {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--primary-border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 auto 2rem;
    max-width: 680px;
    line-height: 1.7;
}

.hero-checklist {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
}

.hero-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-checklist svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--primary-bright);
}

.hero-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-alt {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-alt:hover { color: var(--primary); }

.hero-secondary-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 2;
}

.hero-secondary-links a {
    color: var(--primary);
    margin: 0 4px;
    font-weight: 500;
    white-space: nowrap;
}

.hero-secondary-links a:hover { text-decoration: underline; }

.disclaimer-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 1.5rem auto 0;
    line-height: 1.5;
    text-align: center;
}

/* ── Product screenshot ──────────────────────────────────────────────────── */

.mockup-section {
    padding: 0 1.5rem 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.mockup-img {
    display: block;
    width: 100%;
    height: auto;
    /* the capture already includes the macOS window frame */
    filter: drop-shadow(0 30px 50px rgba(15, 23, 42, 0.16));
}

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

.features {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    border-color: var(--primary-border);
}

.f-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    background: var(--primary-soft);
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Alternating screenshot + text rows */
.showcase {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.showcase-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
    align-items: center;
}

.showcase-row:nth-child(even) {
    grid-template-columns: 1fr 1.35fr;
}

.showcase-row:nth-child(even) .showcase-media { order: 2; }

.showcase-media img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.14));
}

.showcase-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.showcase-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

@media (max-width: 960px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-row,
    .showcase-row:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; }
    .showcase-row:nth-child(even) .showcase-media { order: 0; }
}

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

/* ── Plans table ─────────────────────────────────────────────────────────── */

.comparison-section {
    padding: 4rem 1.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.table-container {
    overflow-x: auto;
    margin-top: 2.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th,
td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 700;
    background: #f8fafc;
}

tbody tr:last-child td { border-bottom: none; }

th:not(:first-child),
td:not(:first-child) {
    width: 24%;
}

.check {
    color: var(--primary);
    font-weight: 600;
}

.cross { color: #94a3b8; }

.feature-name {
    font-weight: 600;
    color: var(--text-main);
}

.row-everything td {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.row-price td {
    background: var(--primary-soft);
    font-weight: 700;
}

@media (max-width: 560px) {
    th, td { padding: 0.85rem 0.75rem; font-size: 0.88rem; }
}

/* ── Pro ─────────────────────────────────────────────────────────────────── */

.pro-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--primary-soft) 100%);
    padding: 5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.price-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.6em;
    font-weight: 800;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    -webkit-text-fill-color: #fff;
}

.pro-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pro-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pro-card:hover {
    border-color: var(--primary-border);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.pro-card-img {
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.pro-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top left;
}

.pro-card-content { padding: 1.5rem 1.75rem 1.75rem; }

.pro-card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pro-card-content p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

@media (max-width: 960px) {
    .pro-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
}

.footer-cta { margin-bottom: 4rem; }

.footer-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-bottom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.4rem;
}

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

.footer .disclaimer-line { margin-top: 1.5rem; }

@media (max-width: 760px) {
    .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ── Blog index cards ───────────────────────────────────────────────────── */

.blog-preview-section {
    padding: 4rem 1.5rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 20px;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
    border-color: var(--primary-border);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: top left;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.92rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.author-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.author-info { font-size: 0.85rem; }
.author-name { font-weight: 600; color: var(--text-main); }

/* ── Blog articles ──────────────────────────────────────────────────────── */

.article-main {
    max-width: 860px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
}

.article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 4rem);
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article > header,
.article .article-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.article header span:first-child {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.article h1 {
    font-size: clamp(1.9rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.article header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

.article h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 2rem 0 0.75rem;
}

.article p { margin-bottom: 1.25rem; }

.article ul,
.article ol {
    margin: 0 0 1.5rem 1.25rem;
}

.article li { margin-bottom: 0.5rem; }

.article strong { color: var(--text-main); }

.article a:not(.btn-primary):not(.btn-outline) { text-decoration: underline; text-underline-offset: 3px; }

.article img.app-screenshot {
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 12px;
    filter: drop-shadow(0 16px 30px rgba(15, 23, 42, 0.12));
}

.article-table {
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.article-table table { font-size: 0.92rem; }
.article-table th, .article-table td { padding: 0.85rem 1rem; }

.article-cta {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.article-cta h3 { margin-top: 0; }
.article .btn-primary, .article .btn-outline { text-decoration: none; margin: 0.35rem; }
.article .btn-primary { color: #fff; }
.article-cta .btn-primary { color: #fff; text-decoration: none; margin-top: 0.5rem; }

/* ── Simple content pages (privacy) ─────────────────────────────────────── */

.page-main {
    max-width: 820px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-section {
    padding: 4rem 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex: none;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { color: var(--primary); }

.faq-item p {
    padding: 0 1.4rem 1.25rem;
    color: var(--text-muted);
}

/* ── Guides (home page links to the blog) ────────────────────────────────── */

.guides-section {
    padding: 2rem 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.guides-section .feature-grid { margin-top: 2.5rem; }

a.feature-card { color: inherit; }

a.feature-card:hover h3 { color: var(--primary); }

.guides-more {
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
}

/* ── Article byline and related posts ────────────────────────────────────── */

.article header p.article-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h2 { margin-top: 0; font-size: 1.25rem; }

.related-posts ul { list-style: none; margin: 0; }

.related-posts li { margin-bottom: 0.75rem; }

/* ── Article figures and developer notes ─────────────────────────────────── */

.article-figure { margin: 2rem 0; }
.article-figure img.app-screenshot { margin: 0 0 0.75rem; }
.article-figure figcaption {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.article-note {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid #047857;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.06);
}
.article-note p { margin: 0; }
.article-note p + p { margin-top: 0.75rem; }
.article-note .article-note-title {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #047857;
}
.article code {
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(100, 116, 139, 0.12);
}
