/* ==========================================================================
   Base — Reset, body defaults, scrollbar, typography
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: var(--htl-border);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--htl-bg);
    color: var(--htl-fg);
    font-family: var(--htl-font-sans);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
    width: 100%;
}

main {
    flex-grow: 1;
}

/* Headings — use heading-color variable for proper light/dark contrast */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--htl-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 0;
    color: var(--htl-heading-color);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--htl-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--htl-primary);
    border-radius: 8px;
}

/* Selection */
::selection {
    background: var(--htl-primary);
    color: var(--htl-primary-fg);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root :where(.is-layout-flow)>* {
    margin-block-start: 0;
}

pre {
    max-width: 100%;
    overflow-x: auto;
    background: var(--htl-surface);
    border: 1px solid var(--htl-border);
    padding: 1.25rem;
    border-radius: var(--htl-radius);
    font-family: var(--htl-font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

code {
    font-family: var(--htl-font-mono);
    font-size: 0.875em;
    background: var(--htl-surface);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    word-break: break-word;
}

pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
}

.product-detail__tabs-section #tab-features .check-list {
    max-width: 100% !important;
}

.edd-blocks__purchase-form #edd_purchase_form {
    max-width: 100% !important;
}

.edd-free-downloads-modal-wrapper #edd_free_download_form .edd-free-downloads-label{
    background: linear-gradient(135deg, var(--htl-primary), var(--htl-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.edd-free-downloads-modal-wrapper #edd_free_download_form .edd-free-download-submit{
    background: linear-gradient(90deg, var(--htl-primary), oklch(0.65 0.2 300));
    color: var(--htl-primary-fg);
    border: unset;
}

.noptin-form-footer{
    padding : 0 !important;

}

.noptin-inpost-main-wrapper .noptin-optin-form-wrapper{
    margin-top : 0 !important;
    margin-bottom : 0 !important;
}