/* ==========================================================================
   ClawWP — Landing, Docs & Account Pages
   HiFriendBot.com dark theme
   Prefix: hfb-claw-
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --hfb-claw-bg: #0f0f23;
    --hfb-claw-surface: #1a1a2e;
    --hfb-claw-card: #16162a;
    --hfb-claw-border: #2a2a4a;
    --hfb-claw-text: #e2e8f0;
    --hfb-claw-text-muted: #94a3b8;
    --hfb-claw-cyan: #06b6d4;
    --hfb-claw-purple: #8b5cf6;
    --hfb-claw-dark: #0a0a1a;
    --hfb-claw-green: #22c55e;
    --hfb-claw-red: #ef4444;
    --hfb-claw-amber: #f59e0b;
    --hfb-claw-radius: 8px;
    --hfb-claw-radius-lg: 12px;
    --hfb-claw-transition: 0.25s ease;
}

/* --------------------------------------------------------------------------
   1. Page Containers / Layout
   -------------------------------------------------------------------------- */
.hfb-claw-landing,
.hfb-claw-docs,
.hfb-claw-account {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px;
    color: var(--hfb-claw-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.hfb-claw-hero {
    position: relative;
    text-align: center;
    padding: 80px 20px 60px;
    overflow: hidden;
}

/* Decorative glow */
.hfb-claw-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(6, 182, 212, 0.12) 0%,
        rgba(139, 92, 246, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.hfb-claw-hero > * {
    position: relative;
    z-index: 1;
}

/* Badge / pill */
.hfb-claw-hero__badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--hfb-claw-purple), var(--hfb-claw-cyan));
    border-radius: 50px;
    text-transform: uppercase;
}

/* Title */
.hfb-claw-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
}

/* Subtitle */
.hfb-claw-hero__sub {
    font-size: 17px;
    color: var(--hfb-claw-text-muted);
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* CTA row */
.hfb-claw-hero__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.hfb-claw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    border-radius: var(--hfb-claw-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--hfb-claw-transition);
    white-space: nowrap;
    font-family: inherit;
}

.hfb-claw-btn:focus-visible {
    outline: 2px solid var(--hfb-claw-cyan);
    outline-offset: 2px;
}

/* Primary — gradient */
.hfb-claw-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--hfb-claw-cyan), var(--hfb-claw-purple));
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
}

.hfb-claw-btn--primary:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.35), 0 0 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
    color: #fff;
}

/* Ghost */
.hfb-claw-btn--ghost {
    color: var(--hfb-claw-text);
    background: transparent;
    border: 1px solid var(--hfb-claw-border);
}

.hfb-claw-btn--ghost:hover {
    background: var(--hfb-claw-surface);
    border-color: var(--hfb-claw-cyan);
    color: var(--hfb-claw-cyan);
}

/* Small */
.hfb-claw-btn--small {
    padding: 8px 18px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   4. Sections
   -------------------------------------------------------------------------- */
.hfb-claw-section {
    padding: 60px 0;
}

.hfb-claw-section--dark {
    background: var(--hfb-claw-dark);
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: var(--hfb-claw-radius-lg);
}

.hfb-claw-section__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.3;
}

.hfb-claw-section__sub {
    font-size: 16px;
    color: var(--hfb-claw-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. Grid
   -------------------------------------------------------------------------- */
.hfb-claw-grid {
    display: grid;
    gap: 20px;
}

.hfb-claw-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.hfb-claw-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.hfb-claw-card {
    background: var(--hfb-claw-card);
    border: 1px solid var(--hfb-claw-border);
    border-radius: var(--hfb-claw-radius-lg);
    padding: 24px;
    transition: border-color var(--hfb-claw-transition),
        box-shadow var(--hfb-claw-transition);
}

.hfb-claw-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

/* Feature card (icon area) */
.hfb-claw-card--feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hfb-claw-card--feature .hfb-claw-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    font-size: 20px;
    flex-shrink: 0;
}

/* Pricing card */
.hfb-claw-card--pricing {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pricing card — Pro highlight */
.hfb-claw-card--pricing-pro {
    border-color: var(--hfb-claw-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.12), 0 0 60px rgba(6, 182, 212, 0.06);
    position: relative;
}

.hfb-claw-card--pricing-pro::before {
    content: "Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--hfb-claw-cyan), var(--hfb-claw-purple));
    border-radius: 50px;
}

/* Card typography */
.hfb-claw-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.hfb-claw-card p {
    font-size: 14px;
    color: var(--hfb-claw-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Pricing
   -------------------------------------------------------------------------- */
.hfb-claw-price {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin: 16px 0 4px;
    line-height: 1;
}

.hfb-claw-price__period {
    font-size: 15px;
    font-weight: 400;
    color: var(--hfb-claw-text-muted);
}

/* Feature checklist */
.hfb-claw-features {
    list-style: none;
    margin: 20px 0 24px;
    padding: 0;
    text-align: left;
    width: 100%;
}

.hfb-claw-features li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 14px;
    color: var(--hfb-claw-text-muted);
    border-bottom: 1px solid var(--hfb-claw-border);
    line-height: 1.5;
}

.hfb-claw-features li:last-child {
    border-bottom: none;
}

.hfb-claw-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--hfb-claw-cyan);
    font-weight: 700;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   8. FAQ
   -------------------------------------------------------------------------- */
.hfb-claw-faq {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.hfb-claw-faq__item {
    border-bottom: 1px solid var(--hfb-claw-border);
    padding: 0;
}

.hfb-claw-faq__item:last-child {
    border-bottom: none;
}

/* Using <details> / <summary> for toggle */
.hfb-claw-faq__item summary {
    list-style: none;
}

.hfb-claw-faq__item summary::-webkit-details-marker {
    display: none;
}

.hfb-claw-faq__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: color var(--hfb-claw-transition);
    user-select: none;
}

.hfb-claw-faq__q:hover {
    color: var(--hfb-claw-cyan);
}

.hfb-claw-faq__q::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: var(--hfb-claw-text-muted);
    transition: transform var(--hfb-claw-transition);
    flex-shrink: 0;
    margin-left: 16px;
}

details[open] .hfb-claw-faq__q::after {
    content: "\2212";
    transform: rotate(180deg);
}

.hfb-claw-faq__a {
    padding: 0 0 18px;
    font-size: 15px;
    color: var(--hfb-claw-text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. Docs
   -------------------------------------------------------------------------- */

/* Table of Contents */
.hfb-claw-toc {
    background: var(--hfb-claw-card);
    border: 1px solid var(--hfb-claw-border);
    border-radius: var(--hfb-claw-radius-lg);
    padding: 24px 28px;
    margin-bottom: 40px;
}

.hfb-claw-toc h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--hfb-claw-text-muted);
    margin: 0 0 14px;
}

.hfb-claw-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hfb-claw-toc li {
    padding: 6px 0;
}

.hfb-claw-toc a {
    color: var(--hfb-claw-cyan);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--hfb-claw-transition);
}

.hfb-claw-toc a:hover {
    color: var(--hfb-claw-purple);
    text-decoration: underline;
}

/* Doc sections */
.hfb-claw-docs-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--hfb-claw-border);
}

.hfb-claw-docs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hfb-claw-docs-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.hfb-claw-docs-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 10px;
}

.hfb-claw-docs-section p {
    font-size: 15px;
    color: var(--hfb-claw-text-muted);
    line-height: 1.7;
    margin: 0 0 14px;
}

/* Numbered step */
.hfb-claw-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.hfb-claw-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hfb-claw-cyan), var(--hfb-claw-purple));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.hfb-claw-step__body {
    flex: 1;
    padding-top: 6px;
}

.hfb-claw-step__body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}

.hfb-claw-step__body p {
    font-size: 14px;
    color: var(--hfb-claw-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Table */
.hfb-claw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px 0;
}

.hfb-claw-table th,
.hfb-claw-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--hfb-claw-border);
}

.hfb-claw-table th {
    background: var(--hfb-claw-surface);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hfb-claw-table td {
    background: var(--hfb-claw-card);
    color: var(--hfb-claw-text-muted);
}

.hfb-claw-table tbody tr:hover td {
    background: var(--hfb-claw-surface);
}

/* Code blocks / inline code */
.hfb-claw-code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 13px;
    background: var(--hfb-claw-dark);
    border: 1px solid var(--hfb-claw-border);
    border-radius: 6px;
    color: var(--hfb-claw-cyan);
}

/* Inline code */
code.hfb-claw-code {
    padding: 2px 7px;
}

/* Block code */
pre.hfb-claw-code {
    padding: 18px 20px;
    overflow-x: auto;
    line-height: 1.7;
    color: var(--hfb-claw-text);
    margin: 16px 0;
}

/* --------------------------------------------------------------------------
   10. Account
   -------------------------------------------------------------------------- */

/* License card */
.hfb-claw-license-card {
    background: var(--hfb-claw-card);
    border: 1px solid var(--hfb-claw-border);
    border-radius: var(--hfb-claw-radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.hfb-claw-license-card h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--hfb-claw-text-muted);
    margin: 0 0 16px;
}

/* License key */
.hfb-claw-license-key {
    display: inline-block;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    background: var(--hfb-claw-dark);
    border: 1px solid var(--hfb-claw-border);
    border-radius: var(--hfb-claw-radius);
    padding: 14px 24px;
    word-break: break-all;
    user-select: all;
}

/* Copy button */
.hfb-claw-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hfb-claw-cyan);
    background: transparent;
    border: 1px solid var(--hfb-claw-cyan);
    border-radius: var(--hfb-claw-radius);
    cursor: pointer;
    transition: all var(--hfb-claw-transition);
    font-family: inherit;
}

.hfb-claw-copy-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.hfb-claw-copy-btn--copied {
    color: var(--hfb-claw-green);
    border-color: var(--hfb-claw-green);
}

/* Sites list */
.hfb-claw-sites-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hfb-claw-sites-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--hfb-claw-card);
    border: 1px solid var(--hfb-claw-border);
    border-radius: var(--hfb-claw-radius);
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--hfb-claw-text);
    transition: border-color var(--hfb-claw-transition);
}

.hfb-claw-sites-list li:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

/* Status badges */
.hfb-claw-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hfb-claw-status--active {
    color: var(--hfb-claw-green);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.hfb-claw-status--active::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hfb-claw-green);
}

.hfb-claw-status--expired {
    color: var(--hfb-claw-red);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.hfb-claw-status--expired::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hfb-claw-red);
}

.hfb-claw-status--cancelling {
    color: var(--hfb-claw-amber);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.hfb-claw-status--cancelling::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hfb-claw-amber);
}

/* --------------------------------------------------------------------------
   11. Utilities
   -------------------------------------------------------------------------- */
.hfb-claw-text-center {
    text-align: center;
}

.hfb-claw-mt-0 { margin-top: 0; }
.hfb-claw-mb-0 { margin-bottom: 0; }
.hfb-claw-mb-sm { margin-bottom: 12px; }
.hfb-claw-mb-md { margin-bottom: 24px; }
.hfb-claw-mb-lg { margin-bottom: 40px; }

/* --------------------------------------------------------------------------
   12. Responsive — max-width: 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Layout */
    .hfb-claw-landing,
    .hfb-claw-docs,
    .hfb-claw-account {
        padding: 20px 20px;
    }

    /* Hero */
    .hfb-claw-hero {
        padding: 48px 10px 40px;
    }

    .hfb-claw-hero::before {
        width: 350px;
        height: 350px;
        top: -80px;
    }

    .hfb-claw-hero__title {
        font-size: 28px;
    }

    .hfb-claw-hero__sub {
        font-size: 15px;
    }

    .hfb-claw-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    /* Buttons */
    .hfb-claw-btn {
        width: 100%;
        justify-content: center;
    }

    /* Sections */
    .hfb-claw-section {
        padding: 40px 0;
    }

    .hfb-claw-section--dark {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hfb-claw-section__title {
        font-size: 22px;
    }

    .hfb-claw-section__sub {
        font-size: 14px;
    }

    /* Grid — single column */
    .hfb-claw-grid--2,
    .hfb-claw-grid--3 {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .hfb-claw-card {
        padding: 20px;
    }

    /* Pricing */
    .hfb-claw-price {
        font-size: 32px;
    }

    /* FAQ */
    .hfb-claw-faq__q {
        font-size: 15px;
    }

    /* Docs */
    .hfb-claw-docs-section h2 {
        font-size: 20px;
    }

    .hfb-claw-docs-section h3 {
        font-size: 16px;
    }

    .hfb-claw-toc {
        padding: 18px 20px;
    }

    .hfb-claw-table {
        display: block;
        overflow-x: auto;
    }

    /* Account */
    .hfb-claw-license-card {
        padding: 24px 18px;
    }

    .hfb-claw-license-key {
        font-size: 16px;
        padding: 12px 16px;
        letter-spacing: 1px;
    }

    .hfb-claw-sites-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Steps */
    .hfb-claw-step {
        gap: 14px;
    }

    .hfb-claw-step__num {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* --------------------------------------------------------------------------
   13. Responsive — max-width: 480px (extra small)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

    .hfb-claw-hero__title {
        font-size: 24px;
    }

    .hfb-claw-hero__badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .hfb-claw-section__title {
        font-size: 20px;
    }

    .hfb-claw-price {
        font-size: 28px;
    }

    .hfb-claw-license-key {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}
