* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: #172033;
    background: #f8fafc;
    font-synthesis: none;
}

body {
    margin: 0;
    background: #f8fafc;
    color: #172033;
    line-height: 1.5;
}

button, input, textarea {
    font: inherit;
}

button, a, input, textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

:focus-visible {
    outline: 3px solid #818cf8;
    outline-offset: 3px;
}

.fd-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */

.fd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px max(24px, calc((100% - 1200px) / 2));
    background: #fff;
    border-bottom: 1px solid #e9edf3;
}

.fd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -1px;
}

.fd-brand-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #4f46e5;
    color: #fff;
    font-size: 19px;
}

.fd-dot {
    color: #6366f1;
}

.fd-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fd-user-name {
    font-size: 13px;
    font-weight: 600;
}

.fd-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
}

.fd-logout {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 9px 13px;
    background: #fff;
    color: #475569;
}

/* MAIN */

.fd-main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 44px 24px 70px;
    flex: 1;
}

.fd-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.fd-eyebrow {
    color: #6366f1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.fd-intro h1 {
    margin: 7px 0 3px;
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -1.3px;
}

.fd-intro p,
.fd-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.fd-date {
    font-size: 12px;
    color: #64748b;
}

/* STATISTICS */

.fd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.fd-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    padding: 20px;
}

.fd-stat > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.fd-stat strong {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.fd-stat small {
    color: #94a3b8;
}

/* PROGRESS */

.fd-progress-section {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 30px;
}

.fd-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.fd-progress-bar {
    display: block;
    width: 100%;
    height: 9px;
    appearance: none;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

.fd-progress-bar::-webkit-progress-bar {
    background: #eef2f7;
}

.fd-progress-bar::-webkit-progress-value {
    background: #6366f1;
    border-radius: 20px;
}

.fd-progress-bar::-moz-progress-bar {
    background: #6366f1;
    border-radius: 20px;
}

/* SECTION */

.fd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.fd-section-header h2 {
    margin: 0 0 5px;
    font-size: 19px;
    letter-spacing: -.4px;
}

/* CREATE FORM */

.fd-create {
    padding: 24px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 18px;
    margin-bottom: 36px;
}

.fd-create-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fd-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fd-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.fd-form-group input,
.fd-form-group textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    outline: none;
    resize: vertical;
}

.fd-form-group input:focus,
.fd-form-group textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px #6366f120;
}

.fd-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    transition: background .15s, transform .15s;
}

.fd-button:active {
    transform: scale(.98);
}

.fd-primary {
    align-self: flex-start;
    padding: 11px 19px;
    background: #4f46e5;
    color: #fff;
}

.fd-primary:hover {
    background: #4338ca;
}

/* KANBAN */

.fd-board-count {
    font-size: 12px;
    color: #64748b;
}

.fd-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.fd-lane {
    background: #f1f5f9;
    border: 1px solid #e7ecf3;
    border-radius: 16px;
    padding: 14px;
    min-width: 0;
}

.fd-lane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 4px;
}

.fd-lane-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fd-lane-title h3 {
    margin: 0;
    font-size: 13px;
}

.fd-status-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
}

.fd-lane.progress .fd-status-dot {
    background: #f59e0b;
}

.fd-lane.done .fd-status-dot {
    background: #16a34a;
}

.fd-count {
    background: #e2e8f0;
    border-radius: 7px;
    padding: 3px 9px;
    font-size: 11px;
}

.fd-lane-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fd-task-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 17px;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 8px #0f172a05;
}

.fd-task-card h4 {
    font-size: 14px;
    margin: 0 0 8px;
}

.fd-task-desc {
    margin: 0 0 18px;
    font-size: 12px;
    color: #64748b;
    white-space: pre-wrap;
}

.fd-task-footer {
    margin-top: 18px;
}

.fd-actions,
.fd-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fd-outline {
    border-color: #e2e8f0;
    color: #475569;
}

.fd-secondary {
    background: #fef3c7;
    color: #92400e;
}

.fd-complete-btn {
    background: #dcfce7;
    color: #166534;
}

.fd-danger {
    background: #fff1f2;
    color: #be123c;
}

.fd-completed {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
}

.fd-empty {
    padding: 28px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

/* FEEDBACK */

.fd-alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
}

.fd-success {
    color: #166534;
    background: #dcfce7;
}

.fd-error {
    color: #991b1b;
    background: #fee2e2;
}

.fd-footer {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid #e9edf3;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .fd-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fd-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .fd-header {
        padding: 14px 16px;
    }

    .fd-main {
        padding: 28px 16px 50px;
    }

    .fd-user-name,
    .fd-date {
        display: none;
    }

    .fd-profile {
        gap: 8px;
    }

    .fd-stat {
        padding: 15px;
    }

    .fd-stat strong {
        font-size: 25px;
    }

    .fd-create {
        padding: 18px;
    }

    .fd-section-header h2 {
        font-size: 17px;
    }
}

/* ========================================
   FLOWDO LANDING PAGE
======================================== */

.fd-landing-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
    font-weight: 600;
}

.fd-landing-nav > a:first-child {
    color: #64748b;
}

.fd-landing-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    flex: 1;
}

/* HERO */

.fd-hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 52px;
    padding: 80px 0 100px;
}

.fd-hero-tag {
    display: inline-block;
    padding: 8px 13px;
    border: 1px solid #c7d2fe;
    border-radius: 30px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.fd-hero h1 {
    margin: 25px 0;
    font-size: clamp(44px, 5.2vw, 72px);
    line-height: 1.08;
    letter-spacing: -3px;
    font-weight: 800;
}

.fd-hero h1 span {
    color: #6366f1;
}

.fd-hero-description {
    max-width: 470px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.85;
}

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

.fd-hero-btn {
    padding: 14px 22px;
    font-size: 13px;
}

.fd-hero-note {
    margin-top: 22px;
    font-size: 12px;
    color: #94a3b8;
}

/* PREVIEW */

.fd-hero-preview {
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow:
        0 25px 70px rgba(79,70,229,.09),
        0 3px 12px rgba(15,23,42,.035);
    transform: rotate(-1.5deg);
}

.fd-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.fd-preview-label {
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #818cf8;
}

.fd-preview-top h3 {
    font-size: 20px;
    margin: 5px 0;
}

.fd-preview-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.fd-preview-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.fd-preview-lane {
    min-height: 185px;
    padding: 10px;
    border-radius: 11px;
    background: #f1f5f9;
    min-width: 0;
}

.fd-preview-lane-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 13px;
    font-size: 10px;
    font-weight: 700;
}

.fd-preview-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #94a3b8;
}

.fd-preview-dot.amber {
    background: #f59e0b;
}

.fd-preview-dot.green {
    background: #22c55e;
}

.fd-preview-task {
    padding: 12px 9px;
    margin-bottom: 9px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9edf3;
    font-size: 10px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.fd-preview-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: #94a3b8;
    font-size: 11px;
}

/* FEATURES */

.fd-features {
    padding: 40px 0 100px;
}

.fd-features-heading {
    text-align: center;
    margin-bottom: 42px;
}

.fd-features-heading h2 {
    font-size: clamp(28px,4vw,40px);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 14px 0;
}

.fd-features-heading p {
    color: #64748b;
}

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

.fd-feature-card {
    padding: 28px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 18px;
}

.fd-feature-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 23px;
    margin-bottom: 22px;
}

.fd-feature-card h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.fd-feature-card p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

/* FINAL CTA */

.fd-final-cta {
    margin-bottom: 90px;
    padding: 65px 24px;
    border-radius: 24px;
    text-align: center;
    background: #eef2ff;
}

.fd-final-cta h2 {
    font-size: 30px;
    letter-spacing: -1px;
    margin: 0 0 12px;
}

.fd-final-cta p {
    color: #64748b;
    margin-bottom: 25px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .fd-hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 70px 0;
    }

    .fd-hero-preview {
        transform: none;
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .fd-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .fd-landing-main {
        padding: 0 16px;
    }

    .fd-landing-nav {
        gap: 12px;
    }

    .fd-landing-nav > a:first-child {
        display: none;
    }

    .fd-hero {
        padding: 50px 0 60px;
    }

    .fd-hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .fd-hero-description {
        font-size: 14px;
    }

    .fd-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fd-hero-preview {
        padding: 14px;
    }

    .fd-preview-board {
        gap: 6px;
    }

    .fd-preview-lane {
        padding: 7px;
    }

    .fd-preview-lane-title {
        font-size: 8px;
    }

    .fd-preview-task {
        padding: 9px 6px;
        font-size: 9px;
    }

    .fd-features {
        padding-bottom: 60px;
    }

    .fd-final-cta {
        padding: 45px 18px;
        margin-bottom: 50px;
    }
}


/* ========================================
   FLOWDO EDIT TASK PAGE
======================================== */

.fd-edit-main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 70px 24px;
    flex: 1;
}

.fd-edit-heading {
    margin-bottom: 30px;
}

.fd-edit-heading h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
    margin: 12px 0 7px;
}

.fd-edit-heading p {
    font-size: 14px;
    color: #64748b;
}

.fd-edit-card {
    background: #fff;
    padding: 32px;
    border: 1px solid #e9edf3;
    border-radius: 18px;
    box-shadow: 0 6px 25px #0f172a06;
}

.fd-edit-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fd-edit-description textarea {
    min-height: 145px;
}

.fd-edit-notice {
    padding: 13px 16px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    line-height: 1.6;
}

.fd-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.fd-validation {
    color: #dc2626;
    font-size: 12px;
}

.validation-summary-valid {
    display: none;
}

@media (max-width: 520px) {
    .fd-edit-main {
        padding: 40px 16px;
    }

    .fd-edit-card {
        padding: 20px;
    }

    .fd-edit-heading h1 {
        font-size: 28px;
    }

    .fd-edit-actions {
        flex-direction: column-reverse;
    }

    .fd-edit-actions .fd-button {
        width: 100%;
    }
}
.fd-brand-logo {
    display: block;
    width: 165px;
    height: auto;
    max-width: 100%;
}

/* Flowdo Creator Signature */

.fd-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.fd-signature {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.fd-signature a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fd-signature a:hover {
    color: #3730a3;
    text-decoration: underline;
}

.fd-heart {
    display: inline-block;
    transition: transform 0.25s ease;
}

.fd-signature:hover .fd-heart {
    transform: scale(1.2);
}

.fd-copyright {
    font-size: 11px;
    color: #94a3b8;
}
