/* ==========================================================================
   /tools/design-studio — Studio landing page
   Extends static-pages.css
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Canvas Preview Mockup
   --------------------------------------------------------------------------- */
.ds-canvas-preview {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.ds-canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}
.ds-toolbar-dots {
    display: flex;
    gap: 6px;
}
.ds-toolbar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}
.ds-toolbar-dots span:first-child { background: #ef4444; }
.ds-toolbar-dots span:nth-child(2) { background: #f59e0b; }
.ds-toolbar-dots span:nth-child(3) { background: #22c55e; }
.ds-toolbar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}
.ds-toolbar-actions {
    display: flex;
    gap: 8px;
}
.ds-toolbar-btn {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    background: #334155;
    padding: 4px 12px;
    border-radius: 6px;
}
.ds-toolbar-btn--primary {
    background: #ccea4a;
    color: #0f172a;
}

.ds-canvas-body {
    display: grid;
    grid-template-columns: 120px 1fr 160px;
    min-height: 320px;
}

/* Sidebar mock */
.ds-canvas-sidebar-mock {
    background: #1e293b;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid #334155;
}
.ds-mock-panel {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
    padding: 10px 10px;
    border-radius: 6px;
    cursor: default;
    transition: background 0.12s;
}
.ds-mock-panel:first-child {
    background: rgba(204,234,74,0.12);
    color: #ccea4a;
}

/* Canvas area mock */
.ds-canvas-area-mock {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #0f172a;
}
.ds-mock-artboard {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/3;
    background: #1a1a2e;
    border: 1px dashed #334155;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.ds-mock-shape {
    position: absolute;
}
.ds-mock-shape--rect {
    top: 15%;
    left: 8%;
    width: 35%;
    height: 25%;
    background: rgba(204,234,74,0.15);
    border: 1px solid rgba(204,234,74,0.4);
    border-radius: 8px;
}
.ds-mock-shape--circle {
    bottom: 20%;
    right: 12%;
    width: 22%;
    aspect-ratio: 1;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.4);
    border-radius: 50%;
}
.ds-mock-shape--text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.ds-mock-shape--icon {
    top: 12%;
    right: 10%;
}

/* Properties mock */
.ds-canvas-props-mock {
    background: #1e293b;
    padding: 14px 12px;
    border-left: 1px solid #334155;
}
.ds-mock-prop-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 12px;
}
.ds-mock-prop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
    color: #94a3b8;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ds-mock-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #ccea4a;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ---------------------------------------------------------------------------
   Feature Grid
   --------------------------------------------------------------------------- */
.ds-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ds-feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ds-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.ds-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fbfde8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #111827;
}
.ds-feature-icon svg {
    width: 22px;
    height: 22px;
}
.ds-feature-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}
.ds-feature-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ---------------------------------------------------------------------------
   Dark Section (How It Works)
   --------------------------------------------------------------------------- */
.ds-dark-section {
    background: #0f172a;
    padding: 4rem 0;
}
.ds-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ds-step-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 28px 24px;
}
.ds-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ccea4a;
    color: #0f172a;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.ds-step-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
}
.ds-step-card p {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

/* ---------------------------------------------------------------------------
   Comparison Table
   --------------------------------------------------------------------------- */
.ds-comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ds-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.875rem;
}
.ds-comparison-table thead {
    background: #111827;
}
.ds-comparison-table th {
    padding: 14px 20px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    color: #fff;
    text-align: left;
    letter-spacing: 0.01em;
}
.ds-comparison-table .ds-col-premium {
    background: rgba(204,234,74,0.15);
    color: #ccea4a;
}
.ds-comparison-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    line-height: 1.5;
}
.ds-comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.ds-comparison-table tbody tr:hover {
    background: #fafbfc;
}
.ds-check {
    color: #16a34a;
    font-weight: 700;
    font-size: 1rem;
}
.ds-x {
    color: #d1d5db;
    font-size: 1rem;
}

/* ---------------------------------------------------------------------------
   CTA Banner
   --------------------------------------------------------------------------- */
.ds-cta-banner {
    background: #ccea4a;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}
.ds-cta-banner h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    margin: 0 0 8px;
}
.ds-cta-banner p {
    font-size: 0.9375rem;
    color: rgba(0,0,0,0.65);
    margin: 0 0 20px;
}
.ds-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #111827;
    color: #fff;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.ds-cta-btn:hover {
    background: #1f2937;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(17,24,39,0.35);
    transform: translateY(-1px);
}
.ds-cta-btn--outline {
    background: transparent;
    color: #111827;
    border: 1.5px solid rgba(0,0,0,0.2);
}
.ds-cta-btn--outline:hover {
    background: rgba(0,0,0,0.06);
    color: #111827;
    box-shadow: none;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ds-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ds-features-grid { grid-template-columns: 1fr; }
    .ds-steps-grid { grid-template-columns: 1fr; }
    .ds-canvas-body { grid-template-columns: 1fr; min-height: auto; }
    .ds-canvas-sidebar-mock {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #334155;
        padding: 8px;
    }
    .ds-canvas-props-mock { display: none; }
    .ds-mock-artboard { max-width: 100%; aspect-ratio: 16/9; }
    .ds-mock-shape--text { font-size: 0.8125rem; }
    .ds-cta-banner { padding: 28px 20px; }
    .ds-cta-banner h2 { font-size: 1.25rem; }
}
@media (max-width: 768px) {
    /* Override inline style on .sp-badges in design-studio hero */
    .sp-badges {
        flex: 1 1 100% !important;
        align-self: center !important;
        justify-content: center !important;
    }
}
@media (max-width: 575px) {
    .ds-comparison-table { font-size: 0.8125rem; }
    .ds-comparison-table th,
    .ds-comparison-table td { padding: 10px 12px; }
    .ds-canvas-preview { border-radius: 10px; }
    .ds-canvas-toolbar { padding: 8px 12px; }
    .ds-feature-card { padding: 18px; }
    .ds-step-card { padding: 20px 16px; }
    .ds-cta-banner { padding: 20px 16px; border-radius: 12px; }
    .ds-cta-banner h2 { font-size: 1.15rem; }
    .ds-cta-btn { padding: 10px 24px; font-size: 0.875rem; }
}
