/* Homepage — studio hero, app directory, latest posts, contact. */

/* ------------------------------------------------------------- hero */

.home-hero { position: relative; overflow: hidden; }

.home-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -160px;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow) 0%, rgba(224, 102, 47, 0.10) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    display: grid;
    gap: 48px;
    align-items: center;
    padding-block: 56px 64px;
}

@media (min-width: 1024px) {
    .home-hero .container {
        grid-template-columns: 1.1fr 0.9fr;
        padding-block: 88px 96px;
    }
}

.home-hero h1 em { font-style: normal; color: var(--primary); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    margin: 40px 0 0;
    padding: 0;
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 13px; color: var(--ink-3); }
.hero-stats dd {
    margin: 2px 0 0;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}

/* 3×2 grid of app icons */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: clamp(14px, 2vw, 24px);
}

.icon-grid a {
    display: block;
    border-radius: 22.5%;
    transition: transform .25s ease;
}
.icon-grid a:hover { transform: translateY(-4px) rotate(-2deg); }
.icon-grid a:nth-child(even):hover { transform: translateY(-4px) rotate(2deg); }

.icon-grid .app-icon {
    width: clamp(84px, 11vw, 124px);
    height: clamp(84px, 11vw, 124px);
    box-shadow: 0 0 0 1px rgba(32, 36, 40, 0.06), var(--shadow-lg);
}

/* ---------------------------------------------------- section header */

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.section-head .eyebrow { color: var(--ink-3); }

.section-intro { margin: 16px 0 0; max-width: 40rem; color: var(--ink-2); font-size: 17px; }

/* ------------------------------------------------------- app directory */

.app-group { margin-top: 40px; }
.app-group > h3 {
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-3);
}

.app-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.app-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.app-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.app-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.app-card .eyebrow { color: var(--app-color, var(--primary-pressed)); font-size: 11px; }
.app-card h3 { margin: 2px 0 0; font-size: 22px; }
.app-card__pitch { margin: 0; font-weight: 600; color: var(--ink); }
.app-card__desc { margin: 4px 0 0; font-size: 15px; }

.app-card__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 20px;
    font-size: 15px;
    font-weight: 600;
}
.app-card__links a { color: var(--app-color, var(--link)); }
.app-card__links .store { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.app-card__links .store:hover { color: var(--ink); }
.app-card__links .muted { color: var(--ink-3); font-weight: 500; font-size: 14px; }

/* Full-width card for the single business app */
@media (min-width: 768px) {
    .app-card--wide {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 28px;
    }
    .app-card--wide .app-card__top { margin: 0; }
    .app-card--wide .app-card__desc { max-width: 40rem; }
    .app-card--wide .app-card__links { margin: 0; padding: 0; }
}

/* ------------------------------------------------------------ blog */

.post-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card time { font-size: 13px; color: var(--ink-3); }
.post-card h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.post-card p { margin: 0; font-size: 15px; }

/* --------------------------------------------------------- contact */

.contact { text-align: center; }
.contact .container { max-width: 768px; }
.contact .lead { margin-inline: auto; }
.contact .hero-actions { justify-content: center; }
.contact .copy-email { justify-content: center; margin-top: 20px; }
.contact .fine-print a { font-weight: 600; }
