/* Shared site layout: navigation, footer, cards, homepage, hub, blog.
   Colours and tool styles come from style.css. */

.main-wide {
    width: min(1120px, calc(100% - 40px));
}

/* ---------- Header navigation ---------- */

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

.site-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--soft);
    color: var(--accent);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.breadcrumbs a {
    text-decoration: none;
}

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

.breadcrumbs + .hero {
    padding-top: 40px;
}

/* ---------- Buttons and badges ---------- */

.hero-actions {
    margin-top: 28px;
}

.primary-link {
    display: inline-flex;
    padding: 14px 24px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.primary-link:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.secondary-button {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.secondary-button:hover {
    background: var(--accent);
    color: white;
}

.secondary-button.light {
    border-color: white;
    color: white;
}

.secondary-button.light:hover {
    background: white;
    color: var(--accent);
}

.badge,
.soon {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.soon {
    padding: 2px 8px;
    background: #efedef;
    color: var(--muted);
    font-size: 0.68rem;
}

/* ---------- Sections ---------- */

.page-section {
    padding: 64px 0 0;
}

.section-title {
    margin: 10px 0 12px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.section-intro {
    margin: 0 0 4px;
    color: var(--muted);
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.card-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(91, 58, 93, 0.08);
    transform: translateY(-2px);
}

.card h3 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.card .card-note {
    margin-top: auto;
    padding-top: 8px;
    color: var(--accent);
    font-weight: 600;
}

.card-category {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-link {
    margin-top: auto;
    padding-top: 8px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
}

.card-muted {
    background: var(--soft);
    border-color: transparent;
}

.card-soon {
    background: #fbfafb;
    border-style: dashed;
}

.card-soon .soon {
    align-self: flex-start;
}

/* ---------- Homepage ---------- */

.home-hero {
    padding: 80px 0 24px;
    text-align: center;
}

.home-hero h1 {
    margin: 14px auto 16px;
    max-width: 800px;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.home-hero .hero-description {
    max-width: 560px;
}

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

.category-card {
    padding: 28px;
    border-radius: 18px;
    background: var(--soft);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-card h3 {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.category-card p {
    margin: 0 0 16px;
    color: #5f5260;
    font-size: 0.92rem;
}

.category-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
}

.category-card li {
    padding: 7px 0;
    border-top: 1px solid #e6dbe7;
}

.feature-band {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 72px;
    padding: 48px;
    border-radius: 24px;
    background: var(--accent);
    color: white;
}

.feature-band h2 {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.feature-band p {
    margin: 0 0 24px;
    max-width: 520px;
    color: #eadfea;
}

.feature-band .badge {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
}

.feature-visual.standalone {
    margin-top: 32px;
}

.file-chip {
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.file-chip.canva {
    background: linear-gradient(135deg, #00c4cc, #7d2ae8);
    color: white;
}

.file-chip.word {
    background: #185abd;
    color: white;
}

.feature-visual .arrow {
    font-size: 1.6rem;
    font-weight: 800;
    opacity: 0.8;
}

/* ---------- Product box (tool pages, blog posts) ---------- */

.product-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 72px 0 0;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--soft);
}

.product-box .badge {
    background: white;
}

.product-box h2 {
    margin: 12px 0 6px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.product-box p {
    margin: 0;
    max-width: 560px;
    color: #5f5260;
    font-size: 0.93rem;
}

/* ---------- Blog ---------- */

.post {
    max-width: 700px;
    margin: 0 auto;
}

.post-header h1 {
    margin: 32px 0 12px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.post-meta {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 0.88rem;
}

.post-body {
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.06rem;
    line-height: 1.8;
}

.post-body h2 {
    margin: 44px 0 10px;
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.post-body h3 {
    margin: 32px 0 8px;
    font-size: 1.2rem;
}

.post-body a {
    color: var(--accent);
    font-weight: 600;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.post-body th,
.post-body td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.post-body code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--soft);
    font-size: 0.9em;
}

.post-body blockquote {
    margin: 24px 0;
    padding: 4px 20px;
    border-left: 3px solid var(--accent);
    color: #5f5260;
}

.tool-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0;
    padding: 18px 22px;
    border: 1px solid var(--accent);
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.92rem;
}

.tool-callout strong {
    display: block;
    color: var(--accent);
}

.tool-callout .card-link {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.tool-callout:hover {
    background: var(--soft);
}

.draft-banner {
    margin: 24px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff6db;
    color: #7a5b00;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 96px;
    border-top: 1px solid var(--border);
    background: white;
}

.faq-section + .site-footer,
.how-section + .site-footer {
    margin-top: 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 24px;
}

.footer-grid > div {
    flex: 1 1 160px;
}

.footer-grid > .footer-brand {
    flex: 2 1 260px;
}

.footer-brand p {
    max-width: 280px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer h2 {
    margin: 4px 0 12px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.site-footer li a {
    text-decoration: none;
}

.site-footer li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-legal {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 32px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.78rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
    .site-nav a {
        padding: 8px;
        font-size: 0.85rem;
    }

    .feature-band {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .product-box,
    .tool-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid > .footer-brand {
        flex-basis: 100%;
    }
}
