:root {
    --tools-bg: #05080f;
    --tools-card: #0d111a;
    --tools-card-alt: #0f1520;
    --tools-border: rgba(255, 255, 255, 0.08);
    --tools-muted: rgba(255, 255, 255, 0.65);
    --tools-highlight: #38bdf8;
    --tools-accent: #22d3ee;
    --tools-success: #4ade80;
    --tools-text: #f8fafc;
    --tools-eyebrow: #a5b4fc;
}

.tools-demo {
    background: var(--tools-bg);
    color: var(--tools-text);
    padding: 0 0 4rem;
}

.tools-demo section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--tools-border);
}

.tools-demo .section-heading {
    max-width: 960px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    text-align: center;
}

.tools-demo .section-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--tools-eyebrow);
    margin-bottom: 0.7rem;
}

.tools-demo .section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin: 0;
}

.tools-demo-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 1.5rem 3rem;
    align-items: center;
}

.tools-demo-hero .hero-content {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.6));
    border: 1px solid var(--tools-border);
    border-radius: 20px;
    padding: 2.5rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    color: var(--tools-eyebrow);
    margin-bottom: 1rem;
}

.tools-demo-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin: 0 0 1rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--tools-muted);
    margin-bottom: 1.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.primary {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    color: #04101e;
}

.cta.ghost {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--tools-text);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.18);
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-highlights li {
    font-size: 1rem;
    color: var(--tools-muted);
}

.hero-highlights span {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tools-success);
}

.hero-panel {
    border: 1px solid var(--tools-border);
    border-radius: 20px;
    padding: 2rem;
    background: var(--tools-card);
}

.panel-title {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--tools-eyebrow);
    margin-bottom: 1.5rem;
}

.panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-list strong {
    color: var(--tools-text);
}

.panel-note {
    font-size: 0.9rem;
    color: var(--tools-muted);
}

.tools-demo-pivots .pivot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.pivot-card {
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    background: var(--tools-card);
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pivot-card:hover {
    border-color: var(--tools-highlight);
    transform: translateY(-4px);
}

.pivot-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tools-eyebrow);
}

.pivot-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.pivot-card p {
    margin: 0;
    color: var(--tools-muted);
}

.pivot-meta {
    font-size: 0.85rem;
    color: var(--tools-highlight);
}

.tools-demo-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.tools-demo-section.alt {
    background: rgba(15, 23, 42, 0.5);
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.suite-card,
.calculator-card {
    background: var(--tools-card);
    border: 1px solid var(--tools-border);
    border-radius: 18px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suite-card header p,
.calculator-card h3 {
    margin: 0;
}

.suite-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tools-eyebrow);
}

.suite-card h3 {
    margin: 0.3rem 0 0;
}

.suite-card p,
.calculator-card p {
    color: var(--tools-muted);
    line-height: 1.5;
}

.suite-card ul,
.check-list {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--tools-muted);
}

.suite-card li,
.check-list li {
    margin-bottom: 0.4rem;
}

.text-link {
    color: var(--tools-highlight);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.text-link:hover {
    text-decoration: underline;
}

.tools-demo-featured {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--tools-card);
    border: 1px solid var(--tools-border);
    border-radius: 18px;
    padding: 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 100%;
}

.tool-card .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--tools-eyebrow);
}

.tool-card h3 {
    margin: 0;
}

.tool-card p {
    margin: 0;
    color: var(--tools-muted);
}

.tool-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--tools-muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list span {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    color: var(--tools-muted);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.workflow-step {
    border: 1px solid var(--tools-border);
    border-radius: 18px;
    padding: 1.5rem;
    background: var(--tools-card-alt);
}

.step-index {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--tools-eyebrow);
    margin-bottom: 0.6rem;
}

.workflow-step h3 {
    margin: 0 0 0.6rem;
}

.workflow-step p {
    margin: 0;
    color: var(--tools-muted);
}

.tools-demo-insights .insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    border: 1px solid var(--tools-border);
    border-radius: 18px;
    padding: 1.5rem;
    background: var(--tools-card);
}

.insight-card h3 {
    margin: 0 0 0.5rem;
}

.insight-card p {
    margin: 0;
    color: var(--tools-muted);
}

.linking-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.linking-layout h3 {
    margin-top: 0;
}

/* Unified Accordion Styles - Modern SaaS Design */
.pf-accordion {
    max-width: 1100px;
    margin: 0 auto;
}

.pf-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.pf-accordion-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: all 0.2s ease;
}

.pf-accordion-summary::-webkit-details-marker {
    display: none;
}

.pf-accordion-summary:hover {
    color: var(--tools-highlight);
}

.pf-accordion-summary:hover .pf-accordion-icon {
    stroke: var(--tools-highlight);
}

.pf-accordion-question {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tools-text);
    line-height: 1.4;
}

.pf-accordion-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    stroke: var(--tools-muted);
    transition: all 0.3s ease;
}

.pf-accordion-item[open] .pf-accordion-icon {
    transform: rotate(45deg);
}

.pf-accordion-item[open] .pf-accordion-icon-horizontal {
    opacity: 0;
}

.pf-accordion-content {
    padding: 0 0 2rem 0;
    color: var(--tools-muted);
    line-height: 1.7;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-accordion-content p {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.pf-accordion-content p:last-child {
    margin-bottom: 0;
}

.pf-accordion-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pf-accordion-list li {
    padding: 0.6rem 0 0.6rem 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.pf-accordion-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--tools-highlight);
    font-weight: 700;
}

.pf-accordion-list strong {
    color: var(--tools-text);
}

.pf-accordion-list a {
    color: var(--tools-highlight);
    text-decoration: none;
    font-weight: 500;
}

.pf-accordion-list a:hover {
    text-decoration: underline;
    color: var(--tools-accent);
}

.pf-accordion-note {
    margin: 1.5rem 0 0 !important;
    padding: 1.25rem;
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid var(--tools-highlight);
    border-radius: 6px;
    font-size: 1.05rem !important;
}

.pf-accordion-note strong {
    color: var(--tools-text);
}

.pf-accordion-note a {
    color: var(--tools-highlight);
    text-decoration: none;
    font-weight: 500;
}

.pf-accordion-note a:hover {
    text-decoration: underline;
}

.tools-demo-faq .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem;
}

.tools-demo-faq article {
    border: 1px solid var(--tools-border);
    border-radius: 16px;
    padding: 1.4rem;
    background: var(--tools-card);
}

.tools-demo-cta {
    padding: 3rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.tools-demo-cta .cta-content {
    max-width: 520px;
}

.tools-demo-cta h2 {
    margin: 0 0 0.6rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 640px) {
    .hero-ctas,
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta {
        width: 100%;
        justify-content: center;
    }

    .hero-highlights {
        flex-direction: column;
    }

    .tools-demo section {
        padding: 3rem 0;
    }
}

/* Section-specific styles */
.pf-howto-section,
.pf-faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0;
    color: var(--tools-text);
    font-weight: 700;
}

.howto-cta-box {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(34, 211, 238, 0.05));
    border: 1px solid var(--tools-border);
    border-radius: 16px;
    text-align: center;
}

.howto-cta-box p {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    color: var(--tools-text);
}

.howto-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.howto-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.howto-cta-btn.primary {
    background: linear-gradient(135deg, var(--tools-highlight), var(--tools-accent));
    color: #0a0f1a;
}

.howto-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.howto-cta-btn.secondary {
    background: transparent;
    border-color: var(--tools-highlight);
    color: var(--tools-highlight);
}

.howto-cta-btn.secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.howto-cta-btn.tertiary {
    background: transparent;
    border-color: var(--tools-border);
    color: var(--tools-muted);
}

.howto-cta-btn.tertiary:hover {
    border-color: var(--tools-highlight);
    color: var(--tools-text);
}

/* Responsive */
@media (max-width: 640px) {
    .pf-howto-section,
    .pf-faq-section {
        padding: 2rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .pf-accordion-summary {
        padding: 1.25rem 0;
    }

    .pf-accordion-question {
        font-size: 0.98rem;
    }

    .howto-cta-buttons {
        flex-direction: column;
    }

    .howto-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
