/* =============================================================================
   Marketing site styles — ported from the standalone Astro sales site.
   =============================================================================
   The sales site used Tailwind. Rather than add a second toolchain to a Blazor
   app, its handful of utility combinations are expressed here directly. Scoped
   under .mkt so nothing here can leak into the authenticated app's MudBlazor
   styling.
   ========================================================================== */

.mkt {
    --mkt-primary: #f97316;
    --mkt-primary-600: #ea580c;
    --mkt-primary-700: #c2410c;
    --mkt-ink: #111827;
    --mkt-body: #4b5563;
    --mkt-muted: #6b7280;
    --mkt-line: #e5e7eb;
    color: var(--mkt-body);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.mkt a { color: inherit; }

/* --- Shell ------------------------------------------------------------- */

.mkt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.mkt-nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mkt-line);
}
.mkt-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mkt-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--mkt-ink); text-decoration: none; font-size: 1.05rem; }
.mkt-nav-links { display: flex; align-items: center; gap: 22px; }
.mkt-nav-links a { color: var(--mkt-body); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.mkt-nav-links a:hover { color: var(--mkt-primary-600); }

@media (max-width: 780px) {
    .mkt-nav-links a.mkt-hide-sm { display: none; }
}

/* --- Buttons ----------------------------------------------------------- */

.mkt-btn {
    display: inline-block; border-radius: 8px; padding: 12px 22px;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    transition: background-color .15s, color .15s; border: none; cursor: pointer;
}
.mkt-btn-primary { background: var(--mkt-primary-600); color: #fff; }
.mkt-btn-primary:hover { background: var(--mkt-primary-700); }
.mkt-btn-white { background: #fff; color: var(--mkt-primary-600); }
.mkt-btn-white:hover { background: #fff7ed; }
.mkt-btn-dark { background: #111827; color: #fff; }
.mkt-btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* --- Hero -------------------------------------------------------------- */

.mkt-hero {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #d97706 100%);
    color: #fff; padding: 88px 0 96px; text-align: center; position: relative; overflow: hidden;
}
.mkt-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; color: #fff; }
.mkt-hero p { font-size: 1.12rem; color: #ffedd5; max-width: 720px; margin: 22px auto 0; }
.mkt-pill {
    display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
    background: rgba(255,255,255,0.2); padding: 7px 16px; font-size: 0.88rem; font-weight: 600; margin-bottom: 22px;
}
.mkt-hero-actions { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.mkt-hero-link { color: #fff; font-weight: 700; text-decoration: none; }

.mkt-stats { display: flex; gap: 30px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.mkt-stat { text-align: center; min-width: 96px; }
.mkt-stat-value { display: block; font-size: 1.85rem; font-weight: 800; color: #fff; }
.mkt-stat-label { display: block; font-size: 0.85rem; color: #fed7aa; }

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

.mkt-section { padding: 76px 0; }
.mkt-section-alt { background: #f9fafb; }
.mkt-eyebrow { color: var(--mkt-primary-600); font-weight: 700; font-size: 0.92rem; text-align: center; margin: 0; }
.mkt-h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--mkt-ink); text-align: center; margin: 8px 0 0; letter-spacing: -0.02em; }
.mkt-lede { text-align: center; max-width: 700px; margin: 18px auto 0; font-size: 1.05rem; }

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

.mkt-grid { display: grid; gap: 26px; margin-top: 52px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.mkt-card {
    background: #fff; border: 1px solid var(--mkt-line); border-radius: 16px; padding: 28px;
    transition: box-shadow .18s, transform .18s;
}
.mkt-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,0.07); transform: translateY(-2px); }
.mkt-card-top { display: flex; align-items: center; justify-content: space-between; }
.mkt-card-icon { font-size: 1.8rem; }
.mkt-tag { background: #ffedd5; color: var(--mkt-primary-700); border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; }
.mkt-card h3 { margin: 16px 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--mkt-ink); }
.mkt-card p { margin: 0; font-size: 0.96rem; }

.mkt-hw { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 34px; }
.mkt-hw-item { background: #fff; border: 1px solid var(--mkt-line); border-radius: 12px; padding: 22px; text-align: center; }
.mkt-hw-item h4 { margin: 6px 0 2px; color: var(--mkt-ink); font-size: 1rem; }
.mkt-hw-item span { font-size: 0.85rem; color: var(--mkt-muted); }
.mkt-hw-soon { background: #fff7ed; border-color: #fed7aa; }

/* --- Pricing ----------------------------------------------------------- */

.mkt-tiers { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 52px; align-items: start; }
.mkt-tier { background: #fff; border: 1px solid var(--mkt-line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; height: 100%; }
.mkt-tier-featured { background: var(--mkt-primary-600); border-color: var(--mkt-primary-600); color: #ffedd5; }
.mkt-tier-featured h3, .mkt-tier-featured .mkt-price { color: #fff; }
.mkt-tier h3 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--mkt-ink); }
.mkt-price { font-size: 2.4rem; font-weight: 800; color: var(--mkt-ink); }
.mkt-price-unit { font-size: 0.92rem; font-weight: 600; }
.mkt-tier ul { list-style: none; padding: 0; margin: 26px 0 0; }
.mkt-tier li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; font-size: 0.94rem; }
.mkt-check { color: var(--mkt-primary-600); font-weight: 800; flex-shrink: 0; }
.mkt-tier-featured .mkt-check { color: #fff; }
.mkt-tier .mkt-btn { margin-top: 26px; text-align: center; }

.mkt-enterprise { margin-top: 44px; background: linear-gradient(100deg, #111827, #1f2937); border-radius: 20px; padding: 34px; color: #d1d5db; }
.mkt-enterprise h3 { color: #fff; margin: 0 0 6px; font-size: 1.25rem; }
.mkt-ent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 26px; margin-top: 16px; font-size: 0.92rem; }

/* --- FAQ --------------------------------------------------------------- */

.mkt-faq { max-width: 820px; margin: 46px auto 0; }
.mkt-faq details { border-bottom: 1px solid var(--mkt-line); padding: 18px 0; }
.mkt-faq summary { font-weight: 700; color: var(--mkt-ink); cursor: pointer; font-size: 1.02rem; list-style: none; }
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary::after { content: "+"; float: right; color: var(--mkt-primary-600); font-weight: 800; }
.mkt-faq details[open] summary::after { content: "\2212"; }
.mkt-faq p { margin: 12px 0 0; }

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

.mkt-posts { display: grid; gap: 22px; margin-top: 44px; }
.mkt-post { background: #fff; border: 1px solid var(--mkt-line); border-radius: 16px; padding: 26px 28px; }
.mkt-post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--mkt-muted); }
.mkt-post h3 { margin: 10px 0 8px; font-size: 1.22rem; color: var(--mkt-ink); font-weight: 700; }
.mkt-post p { margin: 0 0 12px; }
.mkt-post ul { margin: 0; padding-left: 20px; font-size: 0.95rem; }
.mkt-post li { margin-bottom: 5px; }
.mkt-chip { background: #f3f4f6; border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 0.78rem; color: #374151; }

/* --- CTA + footer ------------------------------------------------------ */

.mkt-cta { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; text-align: center; padding: 72px 0; }
.mkt-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin: 0; color: #fff; }
.mkt-cta p { color: #ffedd5; margin: 16px auto 30px; max-width: 620px; }

.mkt-footer { background: #111827; color: #9ca3af; padding: 52px 0 32px; }
.mkt-footer a { color: #d1d5db; text-decoration: none; display: block; margin-bottom: 9px; font-size: 0.93rem; }
.mkt-footer a:hover { color: #fff; }
.mkt-footer h4 { color: #fff; font-size: 0.92rem; margin: 0 0 14px; }
.mkt-footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.mkt-footer-base { border-top: 1px solid #1f2937; margin-top: 38px; padding-top: 22px; font-size: 0.86rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* --- Contact ----------------------------------------------------------- */

.mkt-contact { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 44px; }
.mkt-field { display: block; margin-bottom: 18px; }
.mkt-field span { display: block; font-weight: 700; color: var(--mkt-ink); font-size: 0.9rem; margin-bottom: 6px; }
.mkt-field input, .mkt-field textarea, .mkt-field select {
    width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 11px 13px;
    font-size: 0.96rem; font-family: inherit; box-sizing: border-box;
}

/* Single-plan pricing: keep the card from stretching the full row width now
   that there is one tier instead of three. */
.mkt-tiers { max-width: 460px; margin-left: auto; margin-right: auto; }

.mkt-promo {
    display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 26px; padding: 12px 20px; border-radius: 999px;
    background: rgba(249, 115, 22, 0.08); border: 1px solid rgba(249, 115, 22, 0.28);
    font-size: 0.95rem;
}

.mkt-trial-note { margin-top: 22px; font-size: 0.92rem; opacity: 0.75; }
