:root {
    --fsdt-ink: #151515;
    --fsdt-muted: #625d57;
    --fsdt-paper: #f5f0e8;
    --fsdt-card: #fffaf2;
    --fsdt-line: #d7d0c6;
    --fsdt-black: #070707;
    --fsdt-red: #9f1d1d;
    --fsdt-red-dark: #6e1111;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fsdt-paper);
    color: var(--fsdt-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

.fsdt-wrap {
    width: min(1180px, calc(100% - 2.5cm));
    margin-left: auto;
    margin-right: auto;
}

.fsdt-skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 1000;
    background: #fff;
    color: #000;
    padding: 10px 12px;
}

.fsdt-skip-link:focus {
    left: 12px;
}

.fsdt-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(21, 21, 21, .14);
    background: rgba(245, 240, 232, .94);
    backdrop-filter: blur(12px);
}

.fsdt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.fsdt-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.fsdt-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--fsdt-red);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: -.08em;
}

.fsdt-brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: .9;
    letter-spacing: -.05em;
}

.fsdt-brand small {
    display: block;
    margin-top: 4px;
    color: var(--fsdt-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fsdt-menu-toggle {
    display: none;
    border: 1px solid var(--fsdt-black);
    background: transparent;
    color: var(--fsdt-black);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    padding: 10px 12px;
    text-transform: uppercase;
}

.fsdt-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fsdt-menu a {
    color: #211f1d;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.fsdt-menu a:hover,
.fsdt-menu a:focus {
    color: var(--fsdt-red);
}

.fsdt-hero {
    padding: 76px 0 54px;
}

.fsdt-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
    align-items: end;
}

.fsdt-kicker {
    margin: 0 0 12px;
    color: var(--fsdt-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.fsdt-hero h1,
.fsdt-section h2,
.fsdt-final-cta h2,
.fsdt-entry h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: .94;
    letter-spacing: -.055em;
}

.fsdt-hero h1 {
    max-width: 820px;
    font-size: clamp(48px, 8vw, 104px);
}

.fsdt-lede {
    max-width: 770px;
    margin: 24px 0 0;
    color: #393633;
    font-size: clamp(18px, 2.25vw, 24px);
}

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

.fsdt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--fsdt-black);
    padding: 12px 18px;
    color: var(--fsdt-black);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.fsdt-button:hover,
.fsdt-button:focus {
    background: var(--fsdt-black);
    color: #fff;
}

.fsdt-button-primary {
    border-color: var(--fsdt-red);
    background: var(--fsdt-red);
    color: #fff;
}

.fsdt-button-primary:hover,
.fsdt-button-primary:focus {
    border-color: var(--fsdt-red-dark);
    background: var(--fsdt-red-dark);
    color: #fff;
}

.fsdt-hero-card {
    border: 1px solid #211f1d;
    background: #fffaf2;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .09);
    padding: 22px;
}

.fsdt-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--fsdt-line);
    padding-bottom: 14px;
    color: var(--fsdt-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fsdt-card-topline strong {
    color: var(--fsdt-red);
}

.fsdt-mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.fsdt-mini-metrics article {
    border: 1px solid var(--fsdt-line);
    background: #f8f4ee;
    padding: 12px;
}

.fsdt-mini-metrics span {
    display: block;
    color: var(--fsdt-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.fsdt-mini-metrics strong {
    display: block;
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1;
}

.fsdt-mini-panel {
    margin-top: 16px;
    border-left: 5px solid var(--fsdt-red);
    background: #fff;
    padding: 14px 16px;
}

.fsdt-mini-panel p {
    margin: 0;
    color: var(--fsdt-muted);
    font-size: 14px;
}

.fsdt-mini-panel p + p {
    margin-top: 10px;
}

.fsdt-section {
    padding: 64px 0;
    border-top: 1px solid var(--fsdt-line);
}

.fsdt-section-alt {
    background: #eee6da;
}

.fsdt-two-column {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.fsdt-section h2,
.fsdt-final-cta h2,
.fsdt-entry h1 {
    font-size: clamp(38px, 5.8vw, 74px);
}

.fsdt-rich-text p,
.fsdt-final-cta p,
.fsdt-entry p {
    color: var(--fsdt-muted);
    font-size: 18px;
}

.fsdt-rich-text p:first-child {
    margin-top: 0;
}

.fsdt-rich-text p:last-child {
    margin-bottom: 0;
}

.fsdt-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fsdt-feature-grid article {
    min-height: 190px;
    border: 1px solid var(--fsdt-line);
    background: var(--fsdt-card);
    padding: 24px;
}

.fsdt-feature-grid h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.04em;
}

.fsdt-feature-grid p {
    margin: 0;
    color: var(--fsdt-muted);
}

.fsdt-demo-embed {
    padding: 28px 0 72px;
    background: var(--fsdt-paper);
}

.fsdt-demo-embed .fscrm-demo-shell {
    max-width: none;
}

.fsdt-plugin-missing {
    border: 1px solid var(--fsdt-line);
    background: var(--fsdt-card);
    padding: 32px;
}

.fsdt-plugin-missing h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 60px);
    line-height: .96;
    letter-spacing: -.045em;
}

.fsdt-plugin-missing p:last-child {
    margin-bottom: 0;
    color: var(--fsdt-muted);
    font-size: 18px;
}

.fsdt-final-cta {
    padding: 76px 0;
    background: var(--fsdt-black);
    color: #fff;
}

.fsdt-final-cta .fsdt-kicker,
.fsdt-final-cta p {
    color: rgba(255, 255, 255, .72);
}

.fsdt-final-cta h2 {
    max-width: 950px;
}

.fsdt-final-cta p {
    max-width: 760px;
    margin: 22px 0 0;
}

.fsdt-final-cta .fsdt-button {
    margin-top: 28px;
}

.fsdt-content-narrow {
    max-width: 850px;
}

.fsdt-entry {
    border: 1px solid var(--fsdt-line);
    background: var(--fsdt-card);
    padding: clamp(26px, 4vw, 48px);
}

.fsdt-entry h1 {
    margin-bottom: 24px;
}

.fsdt-site-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: #111;
    color: rgba(255, 255, 255, .68);
    padding: 46px 0 24px;
}

.fsdt-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.fsdt-footer-brand,
.fsdt-footer-title {
    margin: 0 0 10px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.04em;
}

.fsdt-site-footer p {
    margin-top: 0;
}

.fsdt-site-footer ul {
    margin: 0;
    padding-left: 18px;
}

.fsdt-site-footer li + li {
    margin-top: 6px;
}

.fsdt-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 30px;
    padding-top: 18px;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

@media (max-width: 900px) {
    .fsdt-header-inner {
        min-height: 70px;
    }

    .fsdt-menu-toggle {
        display: inline-flex;
    }

    .fsdt-primary-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        border: 1px solid var(--fsdt-line);
        background: #fffaf2;
        padding: 14px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    }

    .fsdt-primary-nav.is-open {
        display: block;
    }

    .fsdt-menu {
        display: grid;
        gap: 10px;
    }

    .fsdt-menu a {
        display: block;
        padding: 10px;
    }

    .fsdt-hero-grid,
    .fsdt-two-column,
    .fsdt-footer-grid {
        grid-template-columns: 1fr;
    }

    .fsdt-hero-card {
        align-self: stretch;
    }

    .fsdt-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fsdt-wrap {
        width: min(1180px, calc(100% - 32px));
    }

    .fsdt-hero {
        padding-top: 48px;
    }

    .fsdt-hero-card,
    .fsdt-feature-grid article,
    .fsdt-entry {
        padding: 18px;
    }

    .fsdt-mini-metrics,
    .fsdt-feature-grid {
        grid-template-columns: 1fr;
    }

    .fsdt-footer-bottom {
        display: grid;
    }
}

/* v0.1.2 support links */
.fsdt-centered-actions {
    justify-content: center;
}

/* v0.1.3 Studio CRM logo support */
.fsdt-brand-logo-link {
    min-width: 0;
}

.fsdt-brand-logo {
    display: block;
    width: auto;
    max-width: 280px;
    max-height: 56px;
    object-fit: contain;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 720px) {
    .fsdt-brand-logo { max-width: 210px; max-height: 46px; }
}


/* v0.1.5 animated homepage workflow snapshot */
.fsdt-workflow-snapshot {
    position: relative;
    overflow: hidden;
}

.fsdt-workflow-snapshot::before {
    content: "";
    position: absolute;
    inset: -80px -60px auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(159, 29, 29, .16), rgba(159, 29, 29, 0) 68%);
    pointer-events: none;
}

.fsdt-mini-metrics-live article {
    position: relative;
    display: grid;
    grid-template-rows: 34px 48px auto;
    align-content: start;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.fsdt-mini-metrics-live span {
    min-height: 30px;
}

.fsdt-mini-metrics-live strong {
    align-self: start;
    margin-top: 0;
}

.fsdt-mini-metrics-live article.is-live::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--fsdt-red);
    box-shadow: 0 0 0 0 rgba(159, 29, 29, .4);
    animation: fsdtPulseDot 1.4s infinite;
}

.fsdt-mini-metrics-live article.is-ticking {
    transform: translateY(-3px);
    border-color: var(--fsdt-red);
    background: #fff;
}

.fsdt-mini-metrics-live em {
    display: block;
    margin-top: 8px;
    color: var(--fsdt-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fsdt-live-feed {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.fsdt-live-feed article {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--fsdt-line);
    background: #fff;
    padding: 10px 12px;
    animation: fsdtFeedSlide 7.5s infinite;
}

.fsdt-live-feed article:nth-child(2) { animation-delay: .55s; }
.fsdt-live-feed article:nth-child(3) { animation-delay: 1.1s; }

.fsdt-live-feed i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--fsdt-red);
}

.fsdt-live-feed span {
    color: var(--fsdt-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fsdt-live-feed strong {
    color: var(--fsdt-black);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.fsdt-workflow-pulse {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 16px;
}

.fsdt-workflow-pulse span {
    position: relative;
    min-height: 34px;
    border: 1px solid var(--fsdt-line);
    background: #f8f4ee;
    color: var(--fsdt-muted);
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: all .22s ease;
}

.fsdt-workflow-pulse span.is-active {
    border-color: var(--fsdt-red);
    background: var(--fsdt-red);
    color: #fff;
}

.fsdt-workflow-pulse span.is-done {
    border-color: #2f6746;
    background: #edf7f0;
    color: #2f6746;
}

@keyframes fsdtPulseDot {
    0% { box-shadow: 0 0 0 0 rgba(159, 29, 29, .38); }
    70% { box-shadow: 0 0 0 8px rgba(159, 29, 29, 0); }
    100% { box-shadow: 0 0 0 0 rgba(159, 29, 29, 0); }
}

@keyframes fsdtFeedSlide {
    0%, 86%, 100% { transform: translateX(0); opacity: 1; }
    90% { transform: translateX(8px); opacity: .68; }
}

@media (prefers-reduced-motion: reduce) {
    .fsdt-mini-metrics-live article.is-live::after,
    .fsdt-live-feed article {
        animation: none;
    }
}

@media (max-width: 520px) {
    .fsdt-live-feed article,
    .fsdt-workflow-pulse {
        grid-template-columns: 1fr;
    }
    .fsdt-live-feed article {
        align-items: start;
    }
    .fsdt-live-feed i { display: none; }
    .fsdt-live-feed strong { text-align: left; }
}
