/* ==========================================================================
   Consolety.ai Design System v2.0
   Inspired by Linear, Vercel, Stripe
   Colors: #3b6ce7 (blue), #22C58B (green), #0F172A (navy)
   Font: Plus Jakarta Sans
   ========================================================================== */

/* --- DESIGN TOKENS --- */
:root {
    --cty-blue: #3b6ce7;
    --cty-blue-hover: #2d58c9;
    --cty-blue-light: #eff4ff;
    --cty-blue-glow: rgba(59,108,231,0.25);
    --cty-green: #22C58B;
    --cty-green-hover: #1aad79;
    --cty-green-light: #ecfdf5;
    --cty-navy: #0F172A;
    --cty-text: #334155;
    --cty-text-light: #64748b;
    --cty-text-muted: #94a3b8;
    --cty-border: #e2e8f0;
    --cty-bg-alt: #f8fafc;
    --cty-radius-sm: 8px;
    --cty-radius-md: 12px;
    --cty-radius-lg: 16px;
    --cty-radius-xl: 20px;
    --cty-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --cty-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --cty-shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --cty-shadow-blue: 0 4px 14px rgba(59,108,231,0.3);
    --cty-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- THE7 OVERRIDE (keep) --- */
body.consolety-page,
body.consolety-page *:not(svg):not(path) {
    box-sizing: border-box;
}

body.consolety-page {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif !important;
    color: var(--cty-text) !important;
    line-height: 1.65 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    letter-spacing: -0.011em !important;
}

body.consolety-page #page, body.consolety-page .page-inner,
body.consolety-page #content, body.consolety-page #main,
body.consolety-page .masthead, body.consolety-page .dt-sticky-header,
body.consolety-page #bottom-bar, body.consolety-page .footer,
body.consolety-page .branding, body.consolety-page .phantom,
body.consolety-page .top-bar, body.consolety-page #floating-menu {
    display: none !important;
}

body.consolety-page .cty-header,
body.consolety-page .cty-main,
body.consolety-page .cty-footer { display: block !important; }

body.consolety-page h1, body.consolety-page h2, body.consolety-page h3,
body.consolety-page h4, body.consolety-page h5, body.consolety-page h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
    color: var(--cty-navy) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    margin-top: 0 !important;
    text-transform: none !important;
}

body.consolety-page p, body.consolety-page li, body.consolety-page span,
body.consolety-page div, body.consolety-page td, body.consolety-page th,
body.consolety-page button, body.consolety-page input {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
}

body.consolety-page a {
    color: var(--cty-blue);
    text-decoration: none;
    transition: color var(--cty-transition);
}
body.consolety-page a:hover { color: var(--cty-blue-hover); }

/* --- LAYOUT --- */
.cty-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- HEADER --- */
.cty-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding: 0;
    transition: box-shadow var(--cty-transition);
}

.cty-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.cty-logo { display: flex; align-items: center; }
.cty-logo-img { height: 28px; width: auto; }

.cty-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cty-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cty-text-light);
    padding: 6px 14px;
    border-radius: 6px;
    transition: all var(--cty-transition);
}
.cty-nav-links a:hover {
    color: var(--cty-navy);
    background: var(--cty-bg-alt);
}

.cty-nav-cta a {
    background: var(--cty-blue) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: var(--cty-radius-sm) !important;
}
.cty-nav-cta a:hover {
    background: var(--cty-blue-hover) !important;
    box-shadow: var(--cty-shadow-blue);
}

.cty-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}
.cty-mobile-toggle:hover { background: var(--cty-bg-alt); }
.cty-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cty-navy);
    border-radius: 1px;
    transition: transform 0.3s;
}

/* --- BUTTONS --- */
.cty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    padding: 11px 24px;
    border-radius: var(--cty-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--cty-transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.cty-btn-primary {
    background: var(--cty-blue);
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.cty-btn-primary:hover {
    background: var(--cty-blue-hover);
    box-shadow: var(--cty-shadow-blue);
    transform: translateY(-1px);
    color: #fff !important;
}

.cty-btn-green {
    background: var(--cty-green);
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.cty-btn-green:hover {
    background: var(--cty-green-hover);
    box-shadow: 0 4px 14px rgba(34,197,139,0.3);
    transform: translateY(-1px);
    color: #fff !important;
}

.cty-btn-outline {
    background: #fff;
    color: var(--cty-text);
    border: 1px solid var(--cty-border);
    box-shadow: var(--cty-shadow-sm);
}
.cty-btn-outline:hover {
    background: var(--cty-bg-alt);
    border-color: #cbd5e1;
    box-shadow: var(--cty-shadow-md);
    color: var(--cty-navy) !important;
}

.cty-btn-large {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 10px;
}

/* --- SECTIONS --- */
.cty-section { padding: 96px 0; }

.cty-section-alt { background: var(--cty-bg-alt); }

.cty-section-dark {
    background: var(--cty-navy) !important;
    color: #cbd5e1 !important;
}
body.consolety-page .cty-section-dark h2,
body.consolety-page .cty-section-dark h3,
body.consolety-page .cty-section-dark h4,
body.consolety-page .cty-cta-banner h2 {
    color: #fff !important;
}

.cty-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.035em;
}

.cty-section-subtitle {
    font-size: 1.125rem;
    color: var(--cty-text-light);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* --- HERO --- */
.cty-hero {
    padding: 80px 0 72px;
    text-align: center;
    background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.cty-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,108,231,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,108,231,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, black 30%, transparent 70%);
}

.cty-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    max-width: 720px;
    margin: 0 auto 20px;
    position: relative;
}

.cty-hero-sub {
    font-size: 1.188rem;
    color: var(--cty-text-light);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
    position: relative;
}

.cty-hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cty-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,139,0.1);
    color: #16a34a;
    font-size: 0.813rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(34,197,139,0.2);
    position: relative;
}

/* --- FEATURE CARDS --- */
.cty-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cty-feature-card {
    background: #fff;
    border: 1px solid var(--cty-border);
    border-radius: var(--cty-radius-md);
    padding: 28px;
    transition: all var(--cty-transition);
}
.cty-feature-card:hover {
    border-color: rgba(59,108,231,0.3);
    box-shadow: var(--cty-shadow-lg);
    transform: translateY(-3px);
}

.cty-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--cty-blue-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.cty-feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}

.cty-feature-card p {
    color: var(--cty-text-light);
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

/* --- STEPS --- */
.cty-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cty-step {
    text-align: center;
    position: relative;
}

/* Connector line between steps */
.cty-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--cty-blue), rgba(59,108,231,0.2));
    border-radius: 1px;
}

.cty-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cty-blue), #5b8af0);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(59,108,231,0.25);
}

.cty-step h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.cty-step p {
    color: var(--cty-text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --- PRICING --- */
.cty-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.cty-pricing-card {
    background: #fff;
    border: 1px solid var(--cty-border);
    border-radius: var(--cty-radius-lg);
    padding: 36px;
    position: relative;
    transition: all var(--cty-transition);
}
.cty-pricing-card:hover {
    box-shadow: var(--cty-shadow-md);
}

.cty-pricing-card.cty-pricing-featured {
    border-color: var(--cty-blue);
    box-shadow: 0 0 0 1px var(--cty-blue), var(--cty-shadow-lg);
}

.cty-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--cty-blue), #5b8af0);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(59,108,231,0.3);
}

.cty-pricing-name {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cty-pricing-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--cty-navy);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.cty-pricing-price span {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--cty-text-muted);
}

.cty-pricing-desc {
    color: var(--cty-text-light);
    margin-bottom: 28px;
    font-size: 0.875rem;
}

.cty-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.cty-pricing-features li {
    padding: 7px 0;
    font-size: 0.875rem;
    color: var(--cty-text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cty-pricing-features li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--cty-green-light);
    border-radius: 50%;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322C58B'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- FAQ --- */
.cty-faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.cty-faq-item {
    border-bottom: 1px solid var(--cty-border);
}

.cty-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cty-navy);
    text-align: left;
    line-height: 1.45;
    transition: color var(--cty-transition);
}
.cty-faq-question:hover { color: var(--cty-blue); }

.cty-faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--cty-text-muted);
    flex-shrink: 0;
    margin-left: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--cty-bg-alt);
    transition: all var(--cty-transition);
}

.cty-faq-item.active .cty-faq-question::after {
    content: '-';
    background: var(--cty-blue-light);
    color: var(--cty-blue);
}

.cty-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cty-faq-item.active .cty-faq-answer { max-height: 500px; }

.cty-faq-answer-inner {
    padding: 0 0 20px;
    color: var(--cty-text-light);
    line-height: 1.7;
    font-size: 0.938rem;
}

/* --- STATS --- */
.cty-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.cty-stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--cty-blue);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.cty-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* --- CTA BANNER --- */
.cty-cta-banner {
    background: var(--cty-navy);
    padding: 88px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Gradient accent */
.cty-cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,108,231,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cty-cta-banner h2 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 12px;
    position: relative;
}

.cty-cta-banner p {
    color: rgba(255,255,255,0.65);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
}

/* --- COMPARISON TABLE --- */
.cty-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-radius: var(--cty-radius-md);
    overflow: hidden;
    border: 1px solid var(--cty-border);
}

.cty-comparison-table th,
.cty-comparison-table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--cty-border);
    font-size: 0.875rem;
}

.cty-comparison-table th {
    background: var(--cty-bg-alt);
    font-weight: 600;
    color: var(--cty-navy);
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cty-comparison-table td:nth-child(2),
.cty-comparison-table td:nth-child(3) { text-align: center; }

.cty-comparison-table tr:last-child td { border-bottom: none; }

.cty-comparison-table tr:hover td { background: rgba(248,250,252,0.5); }

/* --- CONTENT (pillar/blog) --- */
.cty-content {
    max-width: 720px;
    margin: 0 auto;
}

.cty-content h2 {
    font-size: 1.75rem;
    margin: 56px 0 16px;
    padding-top: 8px;
}

.cty-content h3 {
    font-size: 1.375rem;
    margin: 40px 0 12px;
}

.cty-content p {
    margin-bottom: 20px;
    font-size: 1.063rem;
    line-height: 1.75;
    color: var(--cty-text);
}

.cty-content ul, .cty-content ol {
    margin: 16px 0 24px;
    padding-left: 20px;
}

.cty-content li {
    margin-bottom: 10px;
    font-size: 1.063rem;
    line-height: 1.7;
}

.cty-content a {
    text-decoration: underline;
    text-decoration-color: rgba(59,108,231,0.3);
    text-underline-offset: 2px;
}
.cty-content a:hover {
    text-decoration-color: var(--cty-blue);
}

/* --- HIGHLIGHT BOX --- */
.cty-highlight {
    background: var(--cty-blue-light);
    border-left: 3px solid var(--cty-blue);
    padding: 20px 24px;
    border-radius: 0 var(--cty-radius-sm) var(--cty-radius-sm) 0;
    margin: 28px 0;
    font-size: 0.938rem;
    line-height: 1.7;
}

.cty-highlight-green {
    background: var(--cty-green-light);
    border-left-color: var(--cty-green);
}

/* --- TOC --- */
.cty-toc {
    background: var(--cty-bg-alt);
    border: 1px solid var(--cty-border);
    border-radius: var(--cty-radius-md);
    padding: 24px 28px;
    margin-bottom: 40px;
}
.cty-toc h2 { font-size: 1.125rem !important; margin-bottom: 12px !important; }
.cty-toc ol { padding-left: 20px; margin: 0; }
.cty-toc li { font-size: 0.875rem; margin-bottom: 6px; line-height: 1.5; }
.cty-toc a { text-decoration: none; }

/* --- TRUST ROW --- */
.cty-trust-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
    position: relative;
}

.cty-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    color: var(--cty-text-muted);
    font-weight: 500;
}

/* --- FOOTER --- */
.cty-footer {
    background: var(--cty-navy) !important;
    color: var(--cty-text-muted) !important;
    padding: 72px 0 32px;
}

.cty-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

body.consolety-page .cty-footer-col h4 {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}

.cty-footer-col ul { list-style: none; padding: 0; margin: 0; }
.cty-footer-col li { margin-bottom: 8px; }
.cty-footer-col a {
    color: var(--cty-text-muted);
    font-size: 0.875rem;
    transition: color var(--cty-transition);
}
.cty-footer-col a:hover { color: #fff; }

.cty-footer-col > p {
    font-size: 0.875rem;
    line-height: 1.65;
    margin-top: 12px;
    color: #64748b;
}

.cty-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 0.813rem;
    color: #475569;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .cty-features-grid { grid-template-columns: repeat(2, 1fr); }
    .cty-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cty-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cty-hero h1 { font-size: 2.25rem; }
    .cty-section-title { font-size: 1.75rem; }
    .cty-section { padding: 64px 0; }
    .cty-hero { padding: 64px 0 56px; }
    .cty-steps { grid-template-columns: 1fr; gap: 24px; }
    .cty-step:not(:last-child)::after { display: none; }
    .cty-pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
    .cty-features-grid { grid-template-columns: 1fr; }
    .cty-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cty-cta-banner { padding: 64px 0; }
    .cty-cta-banner h2 { font-size: 1.75rem; }

    .cty-mobile-toggle { display: flex; }
    .cty-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--cty-border);
        box-shadow: var(--cty-shadow-lg);
    }
    .cty-nav-links.active { display: flex; }
    .cty-nav-links a { padding: 10px 16px; width: 100%; }
}

@media (max-width: 480px) {
    .cty-hero h1 { font-size: 1.875rem; }
    .cty-hero-ctas { flex-direction: column; align-items: stretch; }
    .cty-btn-large { width: 100%; justify-content: center; }
    .cty-pricing-card { padding: 24px; }
    .cty-stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .cty-container, .cty-container-narrow { padding: 0 16px; }
}

/* --- BLOG LISTING --- */
.cty-feature-card h3 a {
    transition: color var(--cty-transition);
    text-decoration: none !important;
}
.cty-feature-card h3 a:hover { color: var(--cty-blue) !important; }

/* --- PILLAR/LANDING PAGE OVERRIDES --- */
.cty-pillar-content h2:first-of-type,
.cty-landing-page .cty-hero h1 {
    margin-top: 0;
}
