/* =========================================================================
   LAVACASCADE — css/components/buttons.css
   .btn--primary  molten fill, ONE per view for the main action
   .btn--ghost    1px outline, the default for everything else
   .btn--quiet    text-only, for low-priority actions in tight spots
   Sizes: .btn--sm, default, .btn--lg. Full width: .btn--block
   ========================================================================= */

/* =========================================
   BASE
   ========================================= */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;                 /* comfortable touch target */
    padding: 0.7rem 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
                box-shadow var(--dur) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =========================================
   PRIMARY: white on lava-500/600 (4.8 to 6.0:1)
   ========================================= */
.btn--primary {
    color: #FFFFFF;
    background: var(--grad-lava);
    border-color: rgba(255, 167, 105, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 22px -12px rgba(199, 71, 12, 0.9);
}

.btn--primary:hover:not(:disabled) {
    color: #FFFFFF;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, var(--glow-lava);
}

/* =========================================
   GHOST
   ========================================= */
.btn--ghost {
    color: var(--text-strong);
    background: transparent;
    border-color: var(--line-strong);
}

.btn--ghost:hover:not(:disabled) {
    color: var(--text-strong);
    background: var(--fill-lava);
    border-color: var(--line-lava);
}

/* =========================================
   QUIET
   ========================================= */
.btn--quiet {
    min-height: 36px;
    padding: 0.4rem 0.6rem;
    color: var(--text-soft);
}

.btn--quiet:hover:not(:disabled) {
    color: var(--lava-300);
}

/* =========================================
   SIZES
   ========================================= */
.btn--sm {
    min-height: 38px;
    padding: 0.5rem 0.95rem;
    font-size: var(--fs-xs);
}

.btn--lg {
    min-height: 52px;
    padding: 0.9rem 1.6rem;
    font-size: var(--fs-body);
}

.btn--block {
    width: 100%;
}

/* a row of buttons that wraps on small screens */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* =========================================
   ARROW LINK: "Explore all features ->"
   ========================================= */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    text-decoration: none;
}

.arrow-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--dur) var(--ease);
}

.arrow-link:hover svg {
    transform: translateX(4px);
}

/* =========================================
   LOADING STATE (js sets aria-busy="true")
   ========================================= */
.btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.85;
}
