/* Marketing site (coglabs.dev). Layers on styles.css (buttons, .badge, .lifecycle). */

.mkt { background: #fff; color: #1f2430; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* Nav */
.mkt-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid #eceef1; }
.mkt-nav__inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mkt-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 800; }
.mkt-brand__mark { display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 16px; }
.mkt-brand__logo { height: 30px; }
.mkt-brand__name { font-size: 18px; letter-spacing: -.3px; }
.mkt-links { display: flex; align-items: center; gap: 20px; }
.mkt-links a { text-decoration: none; color: #374151; font-weight: 600; font-size: 14px; }
.mkt-links a:hover { color: var(--brand); }
.mkt-links .btn { color: #fff; }

/* Flash */
.mkt-flash { max-width: 1080px; margin: 12px auto 0; padding: 11px 16px; border-radius: 10px; font-size: 14px; }
.mkt-flash--success { background: #ecfdf3; color: #15803d; }
.mkt-flash--error   { background: #fef2f2; color: #b91c1c; }

/* Hero */
.hero { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, #fff), #fff); }
.hero__inner { max-width: 820px; margin: 0 auto; padding: 88px 20px 64px; text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -1px; margin: 0 0 18px; }
.hero__sub { font-size: 19px; color: #4b5563; margin: 0 auto 28px; max-width: 620px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: #f7f8fa; }
.section__inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section__inner--narrow { max-width: 720px; }
.section__title { font-size: 30px; letter-spacing: -.5px; margin: 0 0 8px; }
.section__lead { color: #6b7280; margin: 0 0 28px; font-size: 16px; }
.section__body { color: #374151; font-size: 17px; line-height: 1.7; }

/* Product grid */
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.mkt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 14px; padding: 22px; text-decoration: none; color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: transform .12s ease, box-shadow .12s ease; }
.mkt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.mkt-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.mkt-card__icon { font-size: 34px; line-height: 1; }
.mkt-card__name { margin: 12px 0 4px; font-size: 18px; }
.mkt-card__tagline { margin: 0 0 16px; color: #6b7280; font-size: 14px; flex: 1 1 auto; }
.mkt-card__more { color: var(--brand); font-weight: 600; font-size: 14px; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--brand); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.plan__tag { position: absolute; top: -11px; left: 26px; background: var(--brand); color: #fff;
    font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan__name { margin: 0 0 6px; font-size: 18px; }
.plan__price { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.plan__period { font-size: 14px; font-weight: 500; color: #6b7280; }
.plan__blurb { color: #6b7280; font-size: 14px; margin: 8px 0 0; }
.plan__features { list-style: none; padding: 16px 0; margin: 0; flex: 1 1 auto; }
.plan__features li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: #374151; }
.plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Contact form */
.mkt-form { text-align: left; }
.mkt-form label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 14px; }
.mkt-form input, .mkt-form textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 13px;
    border: 1px solid #d1d5db; border-radius: 10px; font: inherit; box-sizing: border-box; }
.mkt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mkt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Detail page */
.detail-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff); padding: 40px 0 48px; }
.detail-back { color: #6b7280; text-decoration: none; font-size: 14px; font-weight: 600; }
.detail-head { display: flex; align-items: center; gap: 18px; margin: 20px 0 24px; }
.detail-icon { font-size: 52px; line-height: 1; }
.detail-name { margin: 0; font-size: 34px; letter-spacing: -.5px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-tagline { margin: 6px 0 0; color: #4b5563; font-size: 17px; }
.detail-body-wrap { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 760px) { .detail-body-wrap { grid-template-columns: 2fr 1fr; } }
.detail-image { width: 100%; border-radius: 14px; border: 1px solid #e5e7eb; margin-bottom: 20px; }
.detail-lead { font-size: 17px; line-height: 1.75; color: #374151; }
.detail-features h2 { font-size: 18px; margin: 0 0 10px; }
.detail-features ul { list-style: none; padding: 0; margin: 0; }
.detail-features li { padding: 7px 0 7px 24px; position: relative; color: #374151; font-size: 15px; }
.detail-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Footer */
.mkt-footer { border-top: 1px solid #eceef1; }
.mkt-footer__inner { max-width: 1080px; margin: 0 auto; padding: 28px 20px;
    display: flex; justify-content: space-between; gap: 12px; color: #6b7280; font-size: 14px; }
.mkt-footer__inner a { color: var(--brand); text-decoration: none; }

@media (max-width: 620px) {
    .hero h1 { font-size: 34px; }
    .mkt-links { gap: 12px; }
    .mkt-links a:not(.btn) { display: none; }
    .mkt-form__row { grid-template-columns: 1fr; }
}
