/* ============================================================================
   SB Time Tracker — Marketing surface
   Static SSR pages only. All selectors are .mkt-* prefixed to avoid bleeding
   into the authenticated app (which uses MudBlazor + app.css).
   Builds on the Liquid Glass tokens already defined in app.css.
   ============================================================================ */

:root {
    --mkt-primary:        #007AFF;
    --mkt-primary-2:      #3395FF;
    --mkt-primary-soft:   rgba(0, 122, 255, 0.08);
    --mkt-text:           #1D1D1F;
    --mkt-text-soft:      #6E6E73;
    --mkt-text-faint:     #8E8E93;
    --mkt-bg:             #F8F9FB;
    --mkt-surface:        #FFFFFF;
    --mkt-surface-soft:   rgba(255, 255, 255, 0.72);
    --mkt-border:         rgba(60, 60, 67, 0.12);
    --mkt-border-soft:    rgba(60, 60, 67, 0.06);
    --mkt-success:        #34C759;
    --mkt-warning:        #FF9500;
    --mkt-error:          #FF3B30;
    --mkt-radius:         16px;
    --mkt-radius-sm:      10px;
    --mkt-shadow-sm:      0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
    --mkt-shadow-lg:      0 12px 36px rgba(0, 122, 255, 0.10), 0 2px 8px rgba(0,0,0,0.06);
}

/* -- Reset / shell -------------------------------------------------------- */
.mkt-shell {
    min-height: 100vh;
    background: var(--mkt-bg);
    color: var(--mkt-text);
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.mkt-shell *,
.mkt-shell *::before,
.mkt-shell *::after {
    box-sizing: border-box;
}

.mkt-main {
    position: relative;
    z-index: 1;
}

.mkt-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -- Gradient orbs (background ambience) ---------------------------------- */
.mkt-shell::before,
.mkt-shell::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(140px);
    opacity: 0.55;
}
.mkt-shell::before {
    top: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(51, 149, 255, 0.35), transparent 70%);
}
.mkt-shell::after {
    top: 600px;
    right: -250px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.22), transparent 70%);
}

/* -- Typography ----------------------------------------------------------- */
.mkt-shell h1, .mkt-shell h2, .mkt-shell h3, .mkt-shell h4, .mkt-shell h5 {
    color: var(--mkt-text);
    margin: 0 0 0.5em;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.1;
}
.mkt-shell h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; }
.mkt-shell h2 { font-size: clamp(30px, 4vw, 44px); }
.mkt-shell h3 { font-size: clamp(22px, 2.4vw, 28px); }
.mkt-shell h4 { font-size: 18px; font-weight: 600; }
.mkt-shell p  { margin: 0 0 1em; color: var(--mkt-text-soft); font-size: 17px; }
.mkt-shell a  { color: var(--mkt-primary); text-decoration: none; }
.mkt-shell a:hover { text-decoration: underline; }
.mkt-shell ul { padding-left: 18px; }

.mkt-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mkt-primary);
    margin-bottom: 12px;
}

.mkt-lede {
    font-size: 19px;
    color: var(--mkt-text-soft);
    max-width: 640px;
}

/* -- Section rhythm ------------------------------------------------------- */
.mkt-section        { padding: 96px 0; position: relative; }
.mkt-section--tight { padding: 64px 0; position: relative; }
.mkt-section--surface {
    background: var(--mkt-surface);
    border-top: 1px solid var(--mkt-border-soft);
    border-bottom: 1px solid var(--mkt-border-soft);
}

/* -- Buttons -------------------------------------------------------------- */
.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.mkt-btn-primary {
    background: linear-gradient(135deg, var(--mkt-primary-2) 0%, var(--mkt-primary) 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.32);
}
.mkt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.42);
}
.mkt-btn-ghost {
    background: rgba(255,255,255,0.6);
    color: var(--mkt-text) !important;
    border: 1px solid var(--mkt-border);
    backdrop-filter: blur(20px);
}
.mkt-btn-ghost:hover { background: #fff; }
.mkt-btn-link {
    color: var(--mkt-primary) !important;
    background: transparent;
    padding: 13px 8px;
}
.mkt-btn-lg { padding: 16px 28px; font-size: 17px; }

.mkt-link {
    color: var(--mkt-text) !important;
    font-weight: 500;
    text-decoration: none !important;
}
.mkt-link:hover { color: var(--mkt-primary) !important; }

/* -- Header --------------------------------------------------------------- */
.mkt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 249, 251, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--mkt-border-soft);
}
.mkt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.mkt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}
.mkt-brand-text {
    font-weight: 700;
    font-size: 17px;
    color: var(--mkt-text);
    letter-spacing: -0.01em;
}
.mkt-brand-mark { display: inline-flex; line-height: 0; }

.mkt-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.mkt-nav a {
    color: var(--mkt-text);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none !important;
}
.mkt-nav a:hover { color: var(--mkt-primary); }

.mkt-header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* -- Hero ----------------------------------------------------------------- */
.mkt-hero {
    padding: 96px 0 64px;
    text-align: center;
    position: relative;
}
.mkt-hero h1 {
    max-width: 880px;
    margin: 0 auto 20px;
}
.mkt-hero .mkt-lede {
    margin: 0 auto 36px;
    font-size: 21px;
}
.mkt-hero-ctas {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.mkt-hero-foot {
    margin-top: 18px;
    font-size: 14px;
    color: var(--mkt-text-faint);
}

.mkt-screenshot-frame {
    margin: 56px auto 0;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--mkt-shadow-lg);
    border: 1px solid var(--mkt-border);
    background: #fff;
}
.mkt-screenshot-frame img,
.mkt-screenshot-placeholder {
    display: block;
    width: 100%;
    height: auto;
}
.mkt-screenshot-placeholder {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(51,149,255,0.08), rgba(88,86,214,0.08)),
        repeating-linear-gradient(0deg, rgba(60,60,67,0.04) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(90deg, rgba(60,60,67,0.04) 0 1px, transparent 1px 28px),
        #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mkt-text-faint);
    font-size: 14px;
    font-weight: 500;
}

/* -- Trust bar ------------------------------------------------------------ */
.mkt-trustbar {
    text-align: center;
    padding: 32px 0;
    color: var(--mkt-text-soft);
    font-size: 15px;
}

/* -- Hero (split / asymmetric) ------------------------------------------- */
.mkt-hero--split {
    padding: 88px 0 88px;
    text-align: left;
    overflow: hidden;
}
.mkt-hero--split::before,
.mkt-hero--split::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
}
.mkt-hero--split::before {
    width: 720px;
    height: 720px;
    top: -240px;
    right: -180px;
    background: radial-gradient(circle, rgba(0,122,255,0.18), rgba(0,122,255,0) 65%);
}
.mkt-hero--split::after {
    width: 640px;
    height: 640px;
    bottom: -260px;
    left: -200px;
    background: radial-gradient(circle, rgba(88,86,214,0.14), rgba(88,86,214,0) 65%);
}

.mkt-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.mkt-hero--split .mkt-hero-content h1 {
    max-width: none;
    margin: 0 0 18px;
    font-size: clamp(36px, 5.2vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}
.mkt-hero--split .mkt-hero-content .mkt-lede {
    margin: 0 0 28px;
    max-width: 540px;
    font-size: 19px;
}
.mkt-hero--split .mkt-hero-ctas {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}
.mkt-hero--split .mkt-hero-foot {
    margin-top: 14px;
    text-align: left;
}

.mkt-hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--mkt-border-soft);
    flex-wrap: wrap;
}
.mkt-hero-avatars {
    display: flex;
    align-items: center;
}
.mkt-hero-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #fff;
    margin-left: -8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.mkt-hero-avatar:first-child { margin-left: 0; }
.mkt-hero-trust-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--mkt-text-soft);
    line-height: 1.4;
}
.mkt-hero-trust-text strong { color: var(--mkt-text); }

/* -- Hero mockup --------------------------------------------------------- */
.mkt-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.mkt-mockup-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(60% 50% at 50% 50%, rgba(0,122,255,0.18), rgba(0,122,255,0) 70%);
    filter: blur(40px);
    z-index: 0;
}
.mkt-mockup-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid var(--mkt-border);
    border-radius: 16px;
    box-shadow: var(--mkt-shadow-lg);
    overflow: hidden;
    animation: mkt-float 6s ease-in-out infinite;
}
.mkt-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--mkt-border-soft);
    background: linear-gradient(to bottom, #FBFBFD, #F5F5F7);
}
.mkt-mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mkt-mockup-dot--r { background: #FF5F57; }
.mkt-mockup-dot--y { background: #FEBC2E; }
.mkt-mockup-dot--g { background: #28C840; }
.mkt-mockup-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--mkt-text-faint);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--mkt-border-soft);
    border-radius: 999px;
    padding: 4px 12px;
    max-width: 320px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mkt-mockup-spacer { width: 41px; }
.mkt-mockup-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #FAFBFC;
}
.mkt-mockup-card {
    background: #fff;
    border: 1px solid var(--mkt-border-soft);
    border-radius: 12px;
    padding: 14px 16px;
}
.mkt-mockup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mkt-mockup-label {
    font-size: 12px;
    color: var(--mkt-text-soft);
    margin-bottom: 4px;
}
.mkt-mockup-timer {
    position: relative;
    overflow: hidden;
}
.mkt-mockup-timer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mkt-primary-2), var(--mkt-primary));
}
.mkt-mockup-timer-time {
    font-size: 26px;
    font-weight: 600;
    color: var(--mkt-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.mkt-mockup-timer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mkt-mockup-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mkt-success);
    box-shadow: 0 0 0 0 rgba(52,199,89,0.55);
    animation: mkt-pulse 1.6s ease-in-out infinite;
}
.mkt-mockup-stop {
    font-size: 12px;
    font-weight: 600;
    color: var(--mkt-text-soft);
    background: var(--mkt-bg);
    border: 1px solid var(--mkt-border-soft);
    border-radius: 999px;
    padding: 5px 12px;
}
.mkt-mockup-invoice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mkt-mockup-amount {
    font-size: 17px;
    font-weight: 600;
    color: var(--mkt-text);
}
.mkt-mockup-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--mkt-text-faint);
    margin-left: 2px;
}
.mkt-mockup-pill {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
}
.mkt-mockup-pill--paid {
    background: rgba(52,199,89,0.12);
    color: #1F7A3D;
}
.mkt-mockup-profit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mkt-mockup-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 36px;
}
.mkt-mockup-bar {
    width: 9px;
    background: linear-gradient(180deg, var(--mkt-primary-2), var(--mkt-primary));
    border-radius: 3px 3px 0 0;
    display: block;
}

@keyframes mkt-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes mkt-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(52,199,89,0); }
}

@media (max-width: 960px) {
    .mkt-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .mkt-hero--split {
        padding: 64px 0 56px;
    }
    .mkt-hero-visual {
        order: 2;
    }
    .mkt-mockup-frame {
        max-width: 480px;
    }
}
@media (max-width: 600px) {
    .mkt-hero--split .mkt-hero-content h1 {
        font-size: clamp(32px, 8vw, 44px);
    }
    .mkt-hero--split .mkt-hero-content .mkt-lede {
        font-size: 17px;
    }
    .mkt-hero-trust {
        gap: 12px;
    }
    .mkt-mockup-url {
        max-width: 200px;
        font-size: 11px;
    }
    .mkt-mockup-spacer { display: none; }
}

/* -- Feature grid --------------------------------------------------------- */
.mkt-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .mkt-feature-grid { grid-template-columns: 1fr; }
}
.mkt-feature-card {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border-soft);
    border-radius: var(--mkt-radius);
    padding: 28px;
    box-shadow: var(--mkt-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mkt-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.mkt-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--mkt-primary-soft);
    color: var(--mkt-primary);
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 22px;
}
.mkt-feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.mkt-feature-card p  { margin: 0; }

/* -- Screenshot panel (alternating left/right) ---------------------------- */
.mkt-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin: 0 auto 96px;
}
.mkt-panel:last-child { margin-bottom: 0; }
.mkt-panel--right .mkt-panel-copy   { order: 1; }
.mkt-panel--right .mkt-panel-visual { order: 2; }
.mkt-panel--left  .mkt-panel-copy   { order: 2; }
.mkt-panel--left  .mkt-panel-visual { order: 1; }
@media (max-width: 900px) {
    .mkt-panel { grid-template-columns: 1fr; gap: 32px; }
    .mkt-panel--left .mkt-panel-copy,
    .mkt-panel--right .mkt-panel-copy   { order: 1; }
    .mkt-panel--left .mkt-panel-visual,
    .mkt-panel--right .mkt-panel-visual { order: 2; }
}
.mkt-panel-copy h2 { margin-bottom: 16px; }
.mkt-panel-copy p  { font-size: 17px; }
.mkt-panel-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.mkt-panel-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: var(--mkt-text-soft);
}
.mkt-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--mkt-primary-soft);
    color: var(--mkt-primary);
}
.mkt-panel-list li::after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: 5px;
    color: var(--mkt-primary);
    font-size: 12px;
    font-weight: 700;
}
.mkt-panel-visual {
    border-radius: var(--mkt-radius);
    overflow: hidden;
    box-shadow: var(--mkt-shadow-lg);
    border: 1px solid var(--mkt-border);
    background: #fff;
}

/* -- Comparison table ----------------------------------------------------- */
.mkt-compare {
    overflow-x: auto;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border-soft);
    border-radius: var(--mkt-radius);
    box-shadow: var(--mkt-shadow-sm);
}
.mkt-compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.mkt-compare th,
.mkt-compare td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--mkt-border-soft);
}
.mkt-compare thead th {
    background: rgba(0, 122, 255, 0.04);
    font-weight: 600;
    color: var(--mkt-text);
    font-size: 14px;
    letter-spacing: -0.005em;
}
.mkt-compare tbody tr:last-child td { border-bottom: none; }
.mkt-compare td:first-child { font-weight: 500; color: var(--mkt-text); }
.mkt-cmp-yes  { color: var(--mkt-success); font-weight: 600; }
.mkt-cmp-no   { color: var(--mkt-text-faint); }
.mkt-cmp-soon { color: var(--mkt-warning); font-weight: 500; font-size: 13px; }
.mkt-cmp-note { color: var(--mkt-text-soft); font-size: 14px; }
.mkt-compare .mkt-col-us { background: rgba(0, 122, 255, 0.03); }

/* -- CTA banner ----------------------------------------------------------- */
.mkt-cta-banner {
    background: linear-gradient(135deg, #3395FF 0%, #007AFF 100%);
    color: #fff;
    border-radius: var(--mkt-radius);
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 122, 255, 0.25);
}
.mkt-cta-banner h2 { color: #fff; margin-bottom: 8px; }
.mkt-cta-banner p  { color: rgba(255,255,255,0.92); margin-bottom: 24px; font-size: 19px; }
.mkt-cta-banner .mkt-btn-primary {
    background: #fff;
    color: var(--mkt-primary) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.mkt-cta-banner .mkt-btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    border-color: rgba(255,255,255,0.4);
}

/* -- Pricing card --------------------------------------------------------- */
.mkt-pricing-wrap {
    display: flex;
    justify-content: center;
}
.mkt-pricing-card {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--mkt-shadow-lg);
    text-align: left;
    position: relative;
}
.mkt-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3395FF, #007AFF);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}
.mkt-pricing-tier { font-size: 14px; font-weight: 600; color: var(--mkt-primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.mkt-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 6px;
}
.mkt-pricing-amount { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; color: var(--mkt-text); }
.mkt-pricing-unit   { color: var(--mkt-text-soft); font-size: 16px; }
.mkt-pricing-billed { color: var(--mkt-text-faint); font-size: 14px; margin-bottom: 24px; }
.mkt-pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
}
.mkt-pricing-features li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--mkt-text);
    font-size: 15px;
    border-bottom: 1px dashed var(--mkt-border-soft);
}
.mkt-pricing-features li:last-child { border-bottom: none; }
.mkt-pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 8px;
    color: var(--mkt-primary);
    font-weight: 700;
}
.mkt-pricing-foot { color: var(--mkt-text-faint); font-size: 13px; text-align: center; margin-top: 14px; }

/* Annual / Monthly toggle (CSS-only via :checked) ------------------------- */
.mkt-toggle {
    display: inline-flex;
    background: rgba(0, 122, 255, 0.06);
    border-radius: 999px;
    padding: 4px;
    margin: 0 auto 32px;
    border: 1px solid var(--mkt-border-soft);
}
.mkt-toggle input { display: none; }
.mkt-toggle label {
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--mkt-text-soft);
    transition: all 0.2s ease;
}
.mkt-toggle input:checked + label {
    background: #fff;
    color: var(--mkt-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.mkt-toggle-wrap { text-align: center; }

/* CSS-only price swap when monthly is selected */
#mkt-price-monthly:checked ~ .mkt-pricing-wrap .mkt-price-annual { display: none; }
#mkt-price-annual:checked  ~ .mkt-pricing-wrap .mkt-price-monthly { display: none; }

/* -- FAQ ------------------------------------------------------------------ */
.mkt-faq {
    max-width: 760px;
    margin: 0 auto;
}
.mkt-faq details {
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border-soft);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}
.mkt-faq details[open] { box-shadow: var(--mkt-shadow-sm); }
.mkt-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--mkt-text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary::after {
    content: '+';
    font-weight: 400;
    font-size: 22px;
    color: var(--mkt-primary);
    transition: transform 0.2s ease;
}
.mkt-faq details[open] summary::after { content: '−'; }
.mkt-faq details > p { margin: 12px 0 0; color: var(--mkt-text-soft); }

/* -- Footer --------------------------------------------------------------- */
.mkt-footer {
    border-top: 1px solid var(--mkt-border-soft);
    background: rgba(255,255,255,0.5);
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
}
.mkt-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}
@media (max-width: 900px) {
    .mkt-footer-grid { grid-template-columns: 1fr 1fr; }
}
.mkt-footer-tag { color: var(--mkt-text-soft); font-size: 14px; margin-top: 12px; max-width: 320px; }
.mkt-footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mkt-text-faint);
    margin: 0 0 12px;
}
.mkt-footer-col a {
    display: block;
    color: var(--mkt-text);
    font-size: 14px;
    text-decoration: none !important;
    padding: 5px 0;
}
.mkt-footer-col a:hover { color: var(--mkt-primary); }
.mkt-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--mkt-border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--mkt-text-faint);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

/* -- Responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
    .mkt-nav { display: none; }
    .mkt-header-cta { gap: 8px; }
    .mkt-section, .mkt-hero { padding: 64px 0 48px; }
    .mkt-cta-banner { padding: 40px 24px; }
}

/* ============================================================
   CHANGELOG
   Public release-notes feed at /changelog. Card-based vertical
   feed with category-colored accents. Lives inside MarketingLayout.
   ============================================================ */

.changelog-hero { padding: 80px 0 16px; }
.changelog-feed { padding: 8px 0 96px; }

.changelog-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.changelog-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.05;
    margin: 8px 0 18px;
    color: var(--mkt-text);
}

.changelog-lede {
    font-size: 17px;
    color: var(--mkt-text-soft);
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.changelog-rss-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid var(--mkt-border);
    border-radius: 999px;
    color: var(--mkt-text-soft) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    line-height: 1;
}
.changelog-rss-link:hover {
    color: var(--mkt-primary) !important;
    border-color: var(--mkt-primary);
    background: var(--mkt-primary-soft);
}
.changelog-rss-link svg { width: 12px; height: 12px; }

.changelog-empty {
    text-align: center;
    color: var(--mkt-text-soft);
    padding: 64px 0;
    font-size: 15px;
}

.changelog-month {
    font-size: 11px;
    font-weight: 700;
    color: var(--mkt-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 56px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mkt-border-soft);
}
.changelog-month:first-of-type { margin-top: 0; }

/* ── Entry card ──────────────────────────────────────────── */
.changelog-card {
    position: relative;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius);
    padding: 28px 32px 28px 36px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--mkt-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.changelog-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--mkt-primary);
}
.changelog-card--new::before      { background: var(--mkt-success); }
.changelog-card--improved::before { background: var(--mkt-primary); }
.changelog-card--fixed::before    { background: var(--mkt-warning); }
.changelog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mkt-shadow-lg);
}
.changelog-card:hover .changelog-permalink { opacity: 1; }

.changelog-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.changelog-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    line-height: 1.4;
}
.changelog-chip--new      { background: var(--mkt-success); }
.changelog-chip--improved { background: var(--mkt-primary); }
.changelog-chip--fixed    { background: var(--mkt-warning); }

.changelog-date {
    font-size: 13px;
    color: var(--mkt-text-soft);
    font-variant-numeric: tabular-nums;
}

.changelog-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    background: rgba(60, 60, 67, 0.06);
    color: var(--mkt-text-soft);
    font-size: 11.5px;
    font-weight: 500;
}

.changelog-permalink {
    margin-left: auto;
    color: var(--mkt-text-faint);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
    line-height: 1;
}
.changelog-permalink:hover { color: var(--mkt-primary); }

.changelog-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--mkt-text);
}

.changelog-image {
    display: block;
    max-width: 100%;
    border-radius: var(--mkt-radius-sm);
    margin: 16px 0;
    border: 1px solid var(--mkt-border-soft);
}

/* ── Body prose (rendered markdown) ──────────────────────── */
.changelog-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mkt-text);
}
.changelog-body p {
    margin: 0 0 14px;
    color: var(--mkt-text);
    font-size: 15px;
}
.changelog-body p:last-child { margin-bottom: 0; }
.changelog-body strong { font-weight: 600; color: var(--mkt-text); }
.changelog-body em { color: var(--mkt-text); font-style: italic; }
.changelog-body a {
    color: var(--mkt-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.changelog-body a:hover { text-decoration-thickness: 2px; }

/* H2/H3/H4 inside the entry body — small section labels, not
   competing with the card title. */
.changelog-body h1,
.changelog-body h2,
.changelog-body h3,
.changelog-body h4,
.changelog-body h5 {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mkt-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 22px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mkt-border-soft);
    line-height: 1.3;
}
.changelog-body h1:first-child,
.changelog-body h2:first-child,
.changelog-body h3:first-child,
.changelog-body h4:first-child,
.changelog-body h5:first-child { margin-top: 4px; }

.changelog-body ul,
.changelog-body ol {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
}
.changelog-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    line-height: 1.55;
    font-size: 15px;
    color: var(--mkt-text);
}
.changelog-body ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mkt-primary);
    opacity: 0.55;
}
.changelog-body ol { counter-reset: changelog-step; }
.changelog-body ol li { counter-increment: changelog-step; }
.changelog-body ol li::before {
    content: counter(changelog-step) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mkt-text-faint);
    font-weight: 600;
    font-size: 13px;
}
.changelog-body code {
    background: rgba(0, 122, 255, 0.08);
    color: var(--mkt-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.changelog-body pre {
    background: #1D1D1F;
    color: #F8F9FB;
    padding: 16px;
    border-radius: var(--mkt-radius-sm);
    overflow-x: auto;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.5;
}
.changelog-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.changelog-body blockquote {
    border-left: 3px solid var(--mkt-border);
    padding: 4px 0 4px 16px;
    margin: 14px 0;
    color: var(--mkt-text-soft);
    font-style: italic;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .changelog-hero { padding: 56px 0 8px; }
    .changelog-feed { padding: 8px 0 64px; }
    .changelog-card { padding: 22px 22px 22px 26px; }
    .changelog-title { font-size: 19px; }
    .changelog-permalink { opacity: 1; }
    .changelog-month { margin-top: 40px; }
}
