/*
 * ============================================
 * TwirlWeddings — Production CSS System
 * Version 1.0 | Engagement Rings & Diamond Jewelry Edition
 * ============================================
 *
 * Design Philosophy:
 *   Soft-luxury editorial aesthetic with conversion focus.
 *   Every component nudges toward a decision without feeling salesy.
 *   Emotion-first (weddings are emotional), trust-second, revenue-third.
 *
 * Color Scheme:
 *   Rose primary · Champagne accent · Onyx authority · Ivory warmth
 *
 * Revenue model this CSS supports:
 *   ✔ Affiliate product clicks (product cards, verdict boxes, CTAs)
 *   ✔ Email capture (CTA banners, sidebar lead magnet)
 *   ✔ Decision confidence (comparison tables, decision helpers)
 *   ✔ E-E-A-T trust signals (author box, freshness, gemologist callouts)
 *
 * WordPress usage:
 *   1. Upload this file to /wp-content/themes/YOUR-THEME/tw-style.css
 *   2. Add to functions.php:
 *        add_action('wp_enqueue_scripts', function() {
 *            wp_enqueue_style(
 *                'twirlweddings-styles',
 *                get_template_directory_uri() . '/tw-style.css',
 *                [],
 *                '1.0'
 *            );
 *        });
 *   3. Paste all formatted HTML into WordPress Custom HTML blocks only.
 *      Never paste into Paragraph, Heading, or Classic blocks.
 *
 * Class prefix: tw-
 * All classes are namespaced to avoid collisions with theme/plugin styles.
 * ============================================
 */

/* ============================================
   GOOGLE FONTS
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ============================================
   CSS VARIABLES — ROMANTIC LUXURY SYSTEM
============================================ */
:root {

    /* ── PRIMARY: ROSE ── */
    --tw-rose:            #B5536A;   /* romantic primary — CTAs, accents, headings */
    --tw-rose-dark:       #8E3A50;   /* hover states, active states */
    --tw-rose-light:      #F9EEF1;   /* backgrounds, callout fills */
    --tw-rose-border:     #E8C0CB;   /* subtle borders on rose elements */
    --tw-rose-mid:        #D4879A;   /* mid-tone for gradients */

    /* ── SECONDARY: CHAMPAGNE ── */
    --tw-champ:           #C9A96E;   /* accent — prices, awards, upgrade prompts */
    --tw-champ-dark:      #9E7A45;   /* hover, dark variant */
    --tw-champ-light:     #FBF6ED;   /* background fills */
    --tw-champ-border:    #E8D9BE;   /* borders on champagne elements */
    --tw-champ-mid:       #DFC498;   /* gradient mid-stop */

    /* ── AUTHORITY: ONYX ── */
    --tw-onyx:            #1C1C2E;   /* headers, dark banners, authority elements */
    --tw-onyx-mid:        #2D2D45;   /* slightly lighter onyx */
    --tw-onyx-light:      #EEEEF4;   /* very light onyx tint for badges */

    /* ── WARMTH: IVORY ── */
    --tw-ivory:           #FEFCF8;   /* page background */
    --tw-ivory-mid:       #F5F0E8;   /* card footer, spec chips, subtle sections */
    --tw-ivory-warm:      #F0E8DC;   /* deepest warm neutral */

    /* ── TEXT ── */
    --tw-text:            #1C1C2E;   /* primary body text */
    --tw-text-muted:      #5A5A72;   /* secondary text, body copy */
    --tw-text-light:      #8A8AA0;   /* tertiary, labels, metadata */
    --tw-text-white:      #FFFFFF;

    /* ── BORDERS ── */
    --tw-border:          #E8E8F0;   /* default border */
    --tw-border-warm:     #EAE4DC;   /* warm-toned border for ivory sections */

    /* ── SEMANTIC: SUCCESS (SAGE) ── */
    --tw-success:         #3D7A6A;   /* conflict-free, certified, pros, verified */
    --tw-success-light:   #EBF5F2;   /* backgrounds */
    --tw-success-border:  #B0D4CC;   /* borders */

    /* ── SEMANTIC: DANGER (SIENNA) ── */
    --tw-danger:          #8B3A3A;   /* red flags, cons, warnings, avoid */
    --tw-danger-light:    #F5EBEB;   /* backgrounds */
    --tw-danger-border:   #D4AAAA;   /* borders */

    /* ── SHADOWS ── */
    --tw-shadow-sm:       0 1px 3px rgba(28, 28, 46, 0.05);
    --tw-shadow:          0 2px 14px rgba(28, 28, 46, 0.07);
    --tw-shadow-md:       0 6px 24px rgba(28, 28, 46, 0.10);
    --tw-shadow-lg:       0 12px 40px rgba(28, 28, 46, 0.12);
    --tw-shadow-xl:       0 24px 56px rgba(28, 28, 46, 0.14);
    --tw-shadow-rose:     0 4px 20px rgba(181, 83, 106, 0.22);
    --tw-shadow-champ:    0 4px 20px rgba(201, 169, 110, 0.25);

    /* ── BORDER RADIUS ── */
    --tw-radius-sm:       6px;
    --tw-radius:          8px;
    --tw-radius-md:       10px;
    --tw-radius-lg:       14px;
    --tw-radius-xl:       20px;
    --tw-radius-2xl:      28px;
    --tw-radius-full:     9999px;

    /* ── TYPOGRAPHY ── */
    --tw-font-body:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tw-font-heading:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --tw-font-mono:       'DM Mono', 'Courier New', monospace;

    /* ── TRANSITIONS ── */
    --tw-transition-fast: 0.12s ease;
    --tw-transition:      0.22s ease;
    --tw-transition-slow: 0.38s ease;
}


/* ============================================
   BASE RESET & BODY
   Scoped to .tw-* elements to avoid theme conflicts
============================================ */
.tw-wrap,
.tw-wrap *,
.tw-wrap *::before,
.tw-wrap *::after {
    box-sizing: border-box;
}

.tw-wrap {
    font-family: var(--tw-font-body);
    color: var(--tw-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global link reset inside wrapper */
.tw-wrap a {
    color: inherit;
    text-decoration: none;
}


/* ============================================
   LAYOUT CONTAINERS
============================================ */
.tw-container       { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
.tw-container-wide  { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.tw-page-wrap       { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* Two-column content + sidebar layout */
.tw-content-grid {
    display: grid;
    grid-template-columns: 1fr 268px;
    gap: 44px;
    align-items: start;
    padding: 40px 0 60px;
}
@media (max-width: 768px) {
    .tw-content-grid { grid-template-columns: 1fr; }
}

.tw-main-col { min-width: 0; }

.tw-sidebar {
    position: sticky;
    top: 70px;
}
@media (max-width: 768px) {
    .tw-sidebar { display: none; }
}

/* Section wrapper with anchor scroll offset */
.tw-section {
    margin-bottom: 52px;
    scroll-margin-top: 80px;
}

.tw-section-box {
    background: #fff;
    border-radius: var(--tw-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--tw-shadow);
    border: 1px solid var(--tw-border);
}


/* ============================================
   TYPOGRAPHY — EMOTIONAL HIERARCHY
============================================ */

/* Section label (small all-caps, rose) */
.tw-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tw-rose);
    margin-bottom: 10px;
}
.tw-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--tw-rose);
}

/* H1 — article titles */
.tw-h1 {
    font-family: var(--tw-font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--tw-onyx);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

/* H2 — section headings */
.tw-h2 {
    font-family: var(--tw-font-heading);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--tw-onyx);
    margin-bottom: 1rem;
    line-height: 1.25;
}

/* H2 with rose left accent */
.tw-h2-accent {
    border-left: 3px solid var(--tw-rose);
    padding-left: 16px;
}

/* H2 with underline */
.tw-h2-underline {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--tw-rose-border);
}

/* H3 — card headings, subsections */
.tw-h3 {
    font-family: var(--tw-font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tw-onyx);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* H4 — inline subheadings */
.tw-h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tw-onyx);
    margin-bottom: 0.5rem;
}

/* Lead — opening paragraph */
.tw-lead {
    font-size: 1.05rem;
    color: var(--tw-text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Standard body text */
.tw-body-text {
    font-size: 0.92rem;
    color: var(--tw-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Mono text */
.tw-mono { font-family: var(--tw-font-mono); }

/* Inline highlight */
.tw-highlight {
    background: linear-gradient(180deg, transparent 52%, rgba(181, 83, 106, 0.18) 52%);
    padding: 0 2px;
}
.tw-highlight-box {
    background: var(--tw-rose-light);
    padding: 2px 6px;
    border-radius: var(--tw-radius-sm);
}

/* Text color utilities */
.tw-text-rose    { color: var(--tw-rose); }
.tw-text-champ   { color: var(--tw-champ); }
.tw-text-onyx    { color: var(--tw-onyx); }
.tw-text-muted   { color: var(--tw-text-muted); }
.tw-text-light   { color: var(--tw-text-light); }
.tw-text-success { color: var(--tw-success); }
.tw-text-danger  { color: var(--tw-danger); }
.tw-text-white   { color: var(--tw-text-white); }


/* ============================================
   ARTICLE HEADER ELEMENTS
============================================ */
.tw-article-header {
    margin-bottom: 36px;
}

.tw-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--tw-border);
    border-bottom: 1px solid var(--tw-border);
    margin-bottom: 28px;
}

/* "Last verified [DATE]" freshness badge */
.tw-freshness {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--tw-success-light);
    border: 1px solid var(--tw-success-border);
    border-radius: var(--tw-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tw-success);
}
.tw-freshness-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tw-success);
    flex-shrink: 0;
}
.tw-freshness-stale {
    background: var(--tw-champ-light);
    border-color: var(--tw-champ-border);
    color: var(--tw-champ-dark);
}
.tw-freshness-stale .tw-freshness-dot { background: var(--tw-champ); }

/* Author credential strip */
.tw-author-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-rose-light) 100%);
    border-radius: var(--tw-radius);
    border-left: 3px solid var(--tw-rose);
    margin: 16px 0;
}
.tw-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tw-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}
.tw-author-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tw-onyx);
    margin-bottom: 2px;
}
.tw-author-info p {
    font-size: 0.75rem;
    color: var(--tw-text-light);
    margin: 0;
    line-height: 1.4;
}


/* ============================================
   STAT CARDS — key numbers near article top
============================================ */
.tw-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 32px;
}
@media (max-width: 560px) {
    .tw-stat-cards { grid-template-columns: 1fr; }
}

.tw-stat-card {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 18px 16px;
    text-align: center;
    box-shadow: var(--tw-shadow);
}
.tw-stat-num {
    font-family: var(--tw-font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--tw-onyx);
    line-height: 1;
    margin-bottom: 5px;
}
/* Wrap key digits in <em> for rose color */
.tw-stat-num em {
    color: var(--tw-rose);
    font-style: normal;
}
.tw-stat-label {
    font-size: 0.75rem;
    color: var(--tw-text-muted);
    line-height: 1.4;
}


/* ============================================
   QUICK PICKS BOX — dark onyx, near article top
============================================ */
.tw-quick-picks {
    background: var(--tw-onyx);
    border-radius: var(--tw-radius-lg);
    padding: 22px 26px;
    margin-bottom: 36px;
}
.tw-quick-picks-title {
    font-family: var(--tw-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tw-quick-picks-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.tw-picks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 500px) {
    .tw-picks-grid { grid-template-columns: 1fr; }
}
.tw-pick-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--tw-radius);
    text-decoration: none;
    transition: background var(--tw-transition-fast);
}
.tw-pick-item:hover {
    background: rgba(255, 255, 255, 0.09);
}
.tw-pick-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tw-rose);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.tw-pick-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.3;
}
.tw-pick-why {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}


/* ============================================
   BUTTONS — HIGH CONVERSION
============================================ */
.tw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--tw-radius);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--tw-font-body);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--tw-transition);
    line-height: 1;
    white-space: nowrap;
}
.tw-btn:hover { transform: translateY(-1px); }
.tw-btn:active { transform: translateY(0); }

/* Rose fill — primary action */
.tw-btn-primary {
    background: var(--tw-rose);
    color: #fff;
    box-shadow: var(--tw-shadow-rose);
}
.tw-btn-primary:hover {
    background: var(--tw-rose-dark);
    color: #fff;
    box-shadow: 0 6px 24px rgba(181, 83, 106, 0.30);
}

/* Champagne fill — secondary action */
.tw-btn-champ {
    background: var(--tw-champ);
    color: var(--tw-onyx);
    font-weight: 700;
    box-shadow: var(--tw-shadow-champ);
}
.tw-btn-champ:hover {
    background: var(--tw-champ-dark);
    color: #fff;
}

/* Rose outline — tertiary action */
.tw-btn-outline {
    background: transparent;
    color: var(--tw-rose-dark);
    border: 1.5px solid var(--tw-rose);
}
.tw-btn-outline:hover {
    background: var(--tw-rose);
    color: #fff;
}

/* Onyx fill — dark authority action */
.tw-btn-dark {
    background: var(--tw-onyx);
    color: #fff;
}
.tw-btn-dark:hover {
    background: var(--tw-onyx-mid);
    color: #fff;
}

/* Ghost — for dark backgrounds */
.tw-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.tw-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

/* Size modifiers */
.tw-btn-sm  { padding: 7px 14px; font-size: 0.78rem; }
.tw-btn-lg  { padding: 13px 26px; font-size: 0.95rem; }
.tw-btn-xl  { padding: 15px 30px; font-size: 1rem; }
.tw-btn-pill { border-radius: var(--tw-radius-full); }
.tw-btn-full { width: 100%; }

/* Button group */
.tw-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.tw-btn-group-center { justify-content: center; }


/* ============================================
   BADGES — inline pills
============================================ */
.tw-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: var(--tw-radius-full);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}
.tw-badge-rose    { background: var(--tw-rose-light);    color: var(--tw-rose-dark);   border: 1px solid var(--tw-rose-border); }
.tw-badge-champ   { background: var(--tw-champ-light);   color: var(--tw-champ-dark);  border: 1px solid var(--tw-champ-border); }
.tw-badge-onyx    { background: var(--tw-onyx-light);    color: var(--tw-onyx); }
.tw-badge-success { background: var(--tw-success-light); color: var(--tw-success);     border: 1px solid var(--tw-success-border); }
.tw-badge-danger  { background: var(--tw-danger-light);  color: var(--tw-danger);      border: 1px solid var(--tw-danger-border); }
.tw-badge-white   { background: rgba(255,255,255,0.15); color: #fff; }


/* ============================================
   TRUST BAR — horizontal credibility signals
============================================ */
.tw-trust-bar {
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-rose-light) 100%);
    border: 1px solid var(--tw-rose-border);
    border-radius: var(--tw-radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.tw-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tw-rose-dark);
}
.tw-trust-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tw-champ);
    flex-shrink: 0;
}
.tw-trust-sep {
    width: 1px;
    height: 16px;
    background: var(--tw-rose-border);
}


/* ============================================
   JUMP NAVIGATION — sticky section nav
============================================ */
.tw-jump-nav {
    background: #fff;
    border-bottom: 1px solid var(--tw-border);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 90;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tw-jump-nav::-webkit-scrollbar { display: none; }

.tw-jump-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
}
.tw-jump-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 13px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tw-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--tw-transition-fast);
    white-space: nowrap;
}
.tw-jump-nav a:hover {
    color: var(--tw-onyx);
    border-bottom-color: var(--tw-rose);
}
.tw-jump-nav a.tw-active {
    color: var(--tw-rose);
    border-bottom-color: var(--tw-rose);
}
.tw-jump-num {
    background: var(--tw-onyx-light);
    color: var(--tw-onyx);
    font-size: 0.62rem;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ============================================
   CALLOUT BOXES — expert insights & alerts
============================================ */
.tw-callout {
    padding: 15px 18px;
    border-radius: var(--tw-radius);
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.tw-callout-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1.55;
}
.tw-callout-body { flex: 1; min-width: 0; }
.tw-callout-title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.tw-callout-text {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #2a2a3e;
    margin: 0;
}

/* Expert/gemologist — rose-left, warm gradient */
.tw-callout-expert {
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-rose-light) 100%);
    border-left: 3px solid var(--tw-rose);
}
.tw-callout-expert .tw-callout-title { color: var(--tw-rose-dark); }

/* Buying tip — sage green */
.tw-callout-tip {
    background: var(--tw-success-light);
    border-left: 3px solid var(--tw-success);
}
.tw-callout-tip .tw-callout-title { color: var(--tw-success); }

/* Warning / red flag — sienna */
.tw-callout-warn {
    background: var(--tw-danger-light);
    border-left: 3px solid var(--tw-danger);
}
.tw-callout-warn .tw-callout-title { color: var(--tw-danger); }

/* Neutral info / disclosure — champagne */
.tw-callout-champ {
    background: var(--tw-champ-light);
    border-left: 3px solid var(--tw-champ);
}
.tw-callout-champ .tw-callout-title { color: var(--tw-champ-dark); }

/* Simple/quiet — no accent */
.tw-callout-simple {
    background: var(--tw-ivory-mid);
    border-left: 3px solid var(--tw-border);
}
.tw-callout-simple .tw-callout-title { color: var(--tw-text-muted); }


/* ============================================
   PRODUCT CARDS — core revenue component
============================================ */
.tw-product-card {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-lg);
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: var(--tw-shadow);
    transition: box-shadow var(--tw-transition);
}
.tw-product-card:hover {
    box-shadow: var(--tw-shadow-md);
}

/* #1 featured card */
.tw-product-card.tw-featured,
.tw-product-card.featured {
    border-color: var(--tw-rose);
    border-width: 2px;
    position: relative;
}
.tw-product-card.tw-featured::before,
.tw-product-card.featured::before {
    content: 'TOP PICK';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--tw-rose);
    color: #fff;
    padding: 4px 13px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 0 0 7px 7px;
    font-family: var(--tw-font-body);
}

/* Card header — gradient background */
.tw-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--tw-border);
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-rose-light) 100%);
    flex-wrap: wrap;
}

/* Rank circle */
.tw-product-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tw-onyx);
    color: #fff;
    font-family: var(--tw-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tw-product-card.tw-featured .tw-product-rank,
.tw-product-card.featured .tw-product-rank {
    background: var(--tw-rose);
}

.tw-product-title-group { flex: 1; min-width: 0; }

.tw-product-name {
    font-family: var(--tw-font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--tw-onyx);
    margin: 0 0 3px;
    line-height: 1.2;
}
.tw-product-tagline {
    font-size: 0.78rem;
    color: var(--tw-text-light);
    margin-bottom: 9px;
}
.tw-product-price {
    font-family: var(--tw-font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tw-rose-dark);
    flex-shrink: 0;
}
.tw-product-price-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tw-text-light);
    margin-bottom: 2px;
}

/* Card body */
.tw-product-body { padding: 20px 22px; }
.tw-product-desc {
    font-size: 0.88rem;
    color: var(--tw-text-muted);
    line-height: 1.78;
    margin-bottom: 16px;
}
.tw-product-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Spec chips — 3-column row */
.tw-spec-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
@media (max-width: 440px) {
    .tw-spec-row { grid-template-columns: repeat(2, 1fr); }
}
.tw-spec-chip {
    background: var(--tw-ivory-mid);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-sm);
    padding: 9px 11px;
    text-align: center;
}
.tw-spec-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-text-light);
    margin-bottom: 3px;
}
.tw-spec-value {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tw-onyx);
}

/* Card footer */
.tw-product-footer {
    padding: 13px 22px;
    background: var(--tw-ivory-mid);
    border-top: 1px solid var(--tw-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}
.tw-verdict-label-sm {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-text-light);
    margin-right: auto;
}


/* ============================================
   PROS & CONS
============================================ */
.tw-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
@media (max-width: 500px) {
    .tw-pros-cons { grid-template-columns: 1fr; }
}

.tw-pros {
    background: var(--tw-success-light);
    border: 1px solid var(--tw-success-border);
    border-radius: var(--tw-radius);
    padding: 14px 16px;
}
.tw-pros h4 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tw-success);
    border-bottom: 1.5px solid var(--tw-success-border);
    padding-bottom: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tw-pros ul { list-style: none; padding: 0; margin: 0; }
.tw-pros li {
    font-size: 0.82rem;
    padding: 5px 0 5px 20px;
    position: relative;
    color: #2a2a3e;
    line-height: 1.5;
}
.tw-pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tw-success);
    font-weight: 700;
}

.tw-cons {
    background: var(--tw-danger-light);
    border: 1px solid var(--tw-danger-border);
    border-radius: var(--tw-radius);
    padding: 14px 16px;
}
.tw-cons h4 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tw-danger);
    border-bottom: 1.5px solid var(--tw-danger-border);
    padding-bottom: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tw-cons ul { list-style: none; padding: 0; margin: 0; }
.tw-cons li {
    font-size: 0.82rem;
    padding: 5px 0 5px 20px;
    position: relative;
    color: #2a2a3e;
    line-height: 1.5;
}
.tw-cons li::before {
    content: '−';
    position: absolute;
    left: 0;
    color: var(--tw-danger);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}


/* ============================================
   COMPARISON TABLES
============================================ */
.tw-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--tw-radius-lg);
    border: 1px solid var(--tw-border);
    box-shadow: var(--tw-shadow);
    -webkit-overflow-scrolling: touch;
}
.tw-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 480px;
}
.tw-comp-table th {
    background: var(--tw-onyx);
    color: #fff;
    padding: 11px 13px;
    text-align: center;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: var(--tw-font-body);
}
.tw-comp-table th:first-child {
    text-align: left;
    border-radius: 13px 0 0 0;
}
.tw-comp-table th:last-child {
    border-radius: 0 13px 0 0;
}
.tw-comp-table td {
    padding: 10px 13px;
    border-bottom: 1px solid var(--tw-border);
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
}
.tw-comp-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--tw-ivory-mid);
    color: var(--tw-onyx);
}
.tw-comp-table tbody tr:last-child td { border-bottom: none; }
.tw-comp-table tbody tr:hover td { background: #FBF6ED; }
.tw-comp-table tbody tr:hover td:first-child { background: #F0EBE0; }

/* Winner highlight on a td */
.tw-comp-table .tw-winner {
    color: var(--tw-success);
    font-weight: 700;
}
/* Best row highlight */
.tw-comp-table .tw-highlight td { background: var(--tw-champ-light) !important; }
.tw-comp-table .tw-highlight td:first-child { background: #F0EBD8 !important; }

/* Simple table (non-comparison, lighter header) */
.tw-table-simple { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.tw-table-simple th {
    background: var(--tw-ivory-mid);
    color: var(--tw-onyx);
    border-bottom: 2px solid var(--tw-border);
    padding: 10px 13px;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tw-table-simple td {
    padding: 9px 13px;
    border-bottom: 1px solid var(--tw-border);
    color: var(--tw-text-muted);
    line-height: 1.5;
}
.tw-table-simple tbody tr:last-child td { border-bottom: none; }


/* ============================================
   VERDICT BOX — declares winner, drives clicks
============================================ */
.tw-verdict-box {
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-rose-light) 100%);
    border: 1.5px solid var(--tw-rose-border);
    border-radius: var(--tw-radius-lg);
    padding: 22px 26px;
    margin: 24px 0;
}
.tw-verdict-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tw-rose);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tw-verdict-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tw-rose-border);
}
.tw-verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 500px) {
    .tw-verdict-grid { grid-template-columns: 1fr; }
}
.tw-verdict-winner-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-text-light);
    margin-bottom: 4px;
}
.tw-verdict-name {
    font-family: var(--tw-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tw-onyx);
    margin-bottom: 6px;
    line-height: 1.2;
}
.tw-verdict-desc {
    font-size: 0.82rem;
    color: var(--tw-text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}


/* ============================================
   DECISION HELPER — natural vs lab, A vs B
============================================ */
.tw-decision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-lg);
    overflow: hidden;
    margin: 16px 0;
}
@media (max-width: 560px) {
    .tw-decision { grid-template-columns: 1fr; }
}
.tw-dec-col { display: flex; flex-direction: column; }
.tw-dec-header {
    padding: 11px 15px;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tw-dec-col:first-child .tw-dec-header {
    background: var(--tw-onyx-light);
    color: var(--tw-onyx);
}
.tw-dec-col:last-child .tw-dec-header {
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-rose-light) 100%);
    color: var(--tw-rose-dark);
}
.tw-dec-item {
    padding: 9px 15px;
    font-size: 0.82rem;
    color: var(--tw-text);
    border-top: 1px solid var(--tw-border);
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.tw-dec-col:first-child .tw-dec-item::before {
    content: '→';
    color: var(--tw-onyx-mid);
    flex-shrink: 0;
    font-weight: 700;
}
.tw-dec-col:last-child .tw-dec-item::before {
    content: '→';
    color: var(--tw-rose);
    flex-shrink: 0;
    font-weight: 700;
}
.tw-dec-col:nth-child(even) .tw-dec-item:nth-child(even) { background: var(--tw-ivory-mid); }


/* ============================================
   DIAMOND SPEC SHEET — gemologist authority
============================================ */
.tw-diamond-guide {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-lg);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--tw-shadow);
}
.tw-diamond-header {
    background: linear-gradient(135deg, var(--tw-onyx) 0%, var(--tw-onyx-mid) 100%);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.tw-diamond-title {
    font-family: var(--tw-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.tw-diamond-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}
.tw-diamond-badge {
    background: var(--tw-champ);
    color: var(--tw-onyx);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--tw-radius-full);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--tw-font-body);
}
.tw-diamond-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 560px) {
    .tw-diamond-body { grid-template-columns: repeat(2, 1fr); }
}
.tw-spec-cell {
    padding: 12px 14px;
    border-bottom: 1px solid var(--tw-border);
    border-right: 1px solid var(--tw-border);
}
.tw-spec-cell:nth-child(3n)   { border-right: none; }
.tw-spec-cell-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tw-text-light);
    margin-bottom: 3px;
}
.tw-spec-cell-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tw-onyx);
    font-family: var(--tw-font-mono);
}
.tw-spec-cell-note {
    font-size: 0.7rem;
    color: var(--tw-text-light);
    margin-top: 2px;
    line-height: 1.4;
}
.tw-diamond-footer {
    padding: 10px 18px;
    background: var(--tw-ivory-mid);
    border-top: 1px solid var(--tw-border);
    font-size: 0.75rem;
    color: var(--tw-text-light);
}

/* Mobile spec cell fix */
@media (max-width: 560px) {
    .tw-spec-cell:nth-child(3n)   { border-right: 1px solid var(--tw-border); }
    .tw-spec-cell:nth-child(2n)   { border-right: none; }
}


/* ============================================
   REVIEW SCORE WIDGET — schema-friendly
============================================ */
.tw-score-widget {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-lg);
    padding: 20px;
    margin: 16px 0;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
    box-shadow: var(--tw-shadow);
}
.tw-score-main { text-align: center; flex-shrink: 0; }
.tw-score-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--tw-rose);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: var(--tw-shadow-rose);
}
.tw-score-num {
    font-family: var(--tw-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.tw-score-denom {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}
.tw-score-verdict {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-rose-dark);
    margin-top: 4px;
}
.tw-score-breakdown {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    justify-content: center;
}
.tw-score-row { display: flex; align-items: center; gap: 10px; }
.tw-score-row-label {
    font-size: 0.78rem;
    color: var(--tw-text-muted);
    min-width: 110px;
}
.tw-score-bar {
    flex: 1;
    height: 7px;
    background: var(--tw-border);
    border-radius: 4px;
    overflow: hidden;
}
.tw-score-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--tw-rose);
    transition: width 1s ease;
}
.tw-score-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tw-rose-dark);
    min-width: 26px;
    text-align: right;
    font-family: var(--tw-font-mono);
}


/* ============================================
   PRICE DISPLAY WIDGET
============================================ */
.tw-price-widget {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-lg);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--tw-shadow);
}
.tw-price-widget-header {
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-rose-light) 100%);
    border-bottom: 1px solid var(--tw-champ-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.tw-price-widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tw-onyx);
    display: flex;
    align-items: center;
    gap: 5px;
}
.tw-price-current {
    font-family: var(--tw-font-mono);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--tw-rose-dark);
}
.tw-price-was {
    font-size: 0.85rem;
    color: var(--tw-text-light);
    text-decoration: line-through;
    margin-left: 6px;
}
.tw-price-save {
    background: var(--tw-success-light);
    color: var(--tw-success);
    border: 1px solid var(--tw-success-border);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--tw-radius-full);
}
.tw-price-note {
    font-size: 0.72rem;
    color: var(--tw-text-light);
    padding: 8px 18px;
    border-top: 1px solid var(--tw-border);
    background: var(--tw-ivory-mid);
}


/* ============================================
   CRITERIA / HOW-WE-CHOSE CARDS
============================================ */
.tw-criteria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
@media (max-width: 500px) {
    .tw-criteria-grid { grid-template-columns: 1fr; }
}
.tw-criteria-card {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    border-top: 3px solid var(--tw-champ);
    padding: 14px 16px;
    box-shadow: var(--tw-shadow);
}
.tw-criteria-card h4 {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--tw-champ-dark);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}
.tw-criteria-card p {
    font-size: 0.82rem;
    color: var(--tw-text-muted);
    line-height: 1.65;
    margin: 0;
}


/* ============================================
   RED FLAGS / MISTAKE CARDS
============================================ */
.tw-flag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}
@media (max-width: 500px) {
    .tw-flag-grid { grid-template-columns: 1fr; }
}
.tw-flag-card {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    border-top: 3px solid var(--tw-danger);
    padding: 13px 15px;
    box-shadow: var(--tw-shadow);
}
.tw-flag-num {
    font-family: var(--tw-font-mono);
    font-size: 0.62rem;
    color: var(--tw-danger);
    margin-bottom: 4px;
}
.tw-flag-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--tw-onyx);
    margin-bottom: 4px;
}
.tw-flag-text {
    font-size: 0.78rem;
    color: var(--tw-text-muted);
    line-height: 1.6;
    margin: 0;
}


/* ============================================
   GUIDE CARDS — "what to read next" grid
============================================ */
.tw-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
@media (max-width: 500px) {
    .tw-guide-grid { grid-template-columns: 1fr; }
}
.tw-guide-card {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 14px 16px;
    box-shadow: var(--tw-shadow);
    transition: box-shadow var(--tw-transition);
    text-decoration: none;
    display: block;
}
.tw-guide-card:hover { box-shadow: var(--tw-shadow-md); }
.tw-guide-card-icon {
    width: 36px;
    height: 36px;
    background: var(--tw-rose-light);
    border-radius: var(--tw-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 10px;
}
.tw-guide-card h3 {
    font-size: 0.92rem;
    color: var(--tw-onyx);
    margin-bottom: 4px;
    line-height: 1.3;
}
.tw-guide-card p {
    font-size: 0.78rem;
    color: var(--tw-text-muted);
    line-height: 1.6;
    margin: 0;
}


/* ============================================
   INTERNAL LINK CALLOUT — champagne strip
============================================ */
.tw-internal-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--tw-champ-light);
    border: 1px solid var(--tw-champ-border);
    border-radius: var(--tw-radius);
    text-decoration: none;
    margin: 16px 0;
    transition: background var(--tw-transition-fast);
}
.tw-internal-link:hover { background: var(--tw-ivory-warm); }
.tw-internal-link-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tw-champ-dark);
    margin-bottom: 2px;
}
.tw-internal-link-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--tw-onyx);
    line-height: 1.35;
}
.tw-internal-link-arrow {
    margin-left: auto;
    color: var(--tw-champ);
    font-size: 0.95rem;
    flex-shrink: 0;
}


/* ============================================
   FAQ ACCORDION
============================================ */
.tw-faq-item {
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}
.tw-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 13px 16px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tw-onyx);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: var(--tw-font-body);
    transition: background var(--tw-transition-fast);
    line-height: 1.4;
}
.tw-faq-q:hover { background: var(--tw-ivory-mid); }
.tw-faq-arrow {
    font-size: 0.65rem;
    color: var(--tw-rose);
    transition: transform var(--tw-transition-slow);
    flex-shrink: 0;
}
.tw-faq-a {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tw-transition-slow), padding var(--tw-transition-slow);
    font-size: 0.86rem;
    color: var(--tw-text-muted);
    line-height: 1.75;
}
.tw-faq-item.open .tw-faq-a {
    padding: 0 16px 14px;
    max-height: 500px;
}
.tw-faq-item.open .tw-faq-arrow {
    transform: rotate(180deg);
}

/* FAQ 2-column grid layout */
.tw-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 600px) {
    .tw-faq-grid { grid-template-columns: 1fr; }
}
.tw-faq-card {
    background: var(--tw-ivory-mid);
    border-radius: var(--tw-radius-lg);
    padding: 16px 18px;
}


/* ============================================
   EMAIL CTA BANNER — primary lead gen element
============================================ */
.tw-cta-banner {
    background: linear-gradient(135deg, var(--tw-onyx) 0%, var(--tw-onyx-mid) 100%);
    border-radius: var(--tw-radius-xl);
    padding: 30px 34px;
    text-align: center;
    color: #fff;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}
.tw-cta-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(181, 83, 106, 0.20) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.tw-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.tw-cta-banner h3 {
    font-family: var(--tw-font-heading);
    font-size: 1.55rem;
    margin-bottom: 8px;
    position: relative;
    color: #fff;
    line-height: 1.2;
}
.tw-cta-banner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 20px;
    position: relative;
    line-height: 1.65;
}
.tw-cta-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--tw-radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.tw-cta-form input[type="email"],
.tw-cta-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 0.88rem;
    outline: none;
    color: var(--tw-onyx);
    font-family: var(--tw-font-body);
    background: transparent;
}
.tw-cta-form button {
    background: var(--tw-rose);
    border: none;
    padding: 0 20px;
    font-weight: 700;
    color: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background var(--tw-transition);
    white-space: nowrap;
    font-family: var(--tw-font-body);
}
.tw-cta-form button:hover { background: var(--tw-rose-dark); }
.tw-cta-perks {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
    position: relative;
}
.tw-cta-perk {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.42);
    display: flex;
    align-items: center;
    gap: 4px;
}
.tw-cta-perk::before { content: '✓'; color: var(--tw-champ); }


/* ============================================
   LEAD MAGNET WIDGET — sidebar/inline email capture
============================================ */
.tw-lead-magnet {
    background: linear-gradient(135deg, var(--tw-onyx) 0%, var(--tw-onyx-mid) 100%);
    border-radius: var(--tw-radius-lg);
    padding: 22px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tw-lead-magnet::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(181, 83, 106, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.tw-lead-magnet-icon {
    width: 52px;
    height: 52px;
    background: rgba(181, 83, 106, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    position: relative;
}
.tw-lead-magnet h3 {
    font-family: var(--tw-font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    line-height: 1.3;
}
.tw-lead-magnet p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 14px;
    position: relative;
    line-height: 1.6;
}
.tw-lead-magnet input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: var(--tw-radius-sm);
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-family: var(--tw-font-body);
    outline: none;
    position: relative;
}


/* ============================================
   SIDEBAR WIDGETS
============================================ */
.tw-sidebar-widget {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-lg);
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: var(--tw-shadow);
}
.tw-sidebar-widget-title {
    font-family: var(--tw-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tw-onyx);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tw-rose);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tw-sidebar-pick {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tw-border);
    align-items: flex-start;
}
.tw-sidebar-pick:last-of-type { border-bottom: none; }
.tw-sidebar-pick-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tw-onyx);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tw-sidebar-pick-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--tw-onyx);
    margin-bottom: 1px;
}
.tw-sidebar-pick-sub {
    font-size: 0.72rem;
    color: var(--tw-text-light);
}
.tw-sidebar-toc a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--tw-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--tw-border);
    transition: color var(--tw-transition-fast);
}
.tw-sidebar-toc a:last-child { border-bottom: none; }
.tw-sidebar-toc a:hover { color: var(--tw-rose); }
.tw-toc-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tw-border);
    flex-shrink: 0;
}


/* ============================================
   STICKY BOTTOM CTA — mobile conversions
============================================ */
.tw-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--tw-border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(28, 28, 46, 0.10);
    transform: translateY(100%);
    transition: transform var(--tw-transition-slow);
}
.tw-sticky-cta.tw-visible { transform: translateY(0); }
.tw-sticky-cta-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tw-onyx);
    flex: 1;
}
.tw-sticky-cta-sub {
    font-size: 0.7rem;
    color: var(--tw-text-light);
    margin-top: 1px;
}
@media (max-width: 768px) {
    .tw-sticky-cta { flex-direction: column; align-items: stretch; text-align: center; }
}


/* ============================================
   SCROLL-TO-TOP BUTTON
============================================ */
.tw-scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: var(--tw-onyx);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tw-shadow-md);
    opacity: 0;
    transition: all var(--tw-transition-slow);
    z-index: 190;
    text-decoration: none;
}
.tw-scroll-top.tw-visible { opacity: 1; }
.tw-scroll-top:hover {
    background: var(--tw-rose);
    transform: translateY(-3px);
}


/* ============================================
   TESTIMONIAL / SOCIAL PROOF
============================================ */
.tw-testimonial {
    background: linear-gradient(135deg, var(--tw-champ-light) 0%, var(--tw-ivory-mid) 100%);
    border-radius: var(--tw-radius-lg);
    padding: 22px;
    margin: 20px 0;
    position: relative;
    border-left: 4px solid var(--tw-rose);
}
.tw-testimonial::before {
    content: '"';
    position: absolute;
    top: 4px;
    left: 16px;
    font-size: 4rem;
    color: var(--tw-rose);
    opacity: 0.18;
    font-family: Georgia, serif;
    line-height: 1;
}
.tw-testimonial p {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--tw-text-muted);
    margin-bottom: 14px;
    padding-left: 20px;
    line-height: 1.75;
}
.tw-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tw-testimonial-avatar {
    width: 42px;
    height: 42px;
    background: var(--tw-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}
.tw-testimonial-name { font-weight: 600; font-size: 0.88rem; }
.tw-testimonial-role { font-size: 0.75rem; color: var(--tw-text-light); }


/* ============================================
   BAR CHART — visual data display
============================================ */
.tw-chart {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-lg);
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--tw-shadow);
}
.tw-chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tw-onyx);
    margin-bottom: 16px;
    text-align: center;
}
.tw-bar-chart { display: flex; flex-direction: column; gap: 10px; }
.tw-bar-item { display: flex; align-items: center; gap: 12px; }
.tw-bar-label {
    width: 120px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: right;
    flex-shrink: 0;
    color: var(--tw-text-muted);
}
.tw-bar-track {
    flex: 1;
    height: 2rem;
    background: var(--tw-ivory-mid);
    border-radius: var(--tw-radius-sm);
    overflow: hidden;
}
.tw-bar-fill {
    height: 100%;
    border-radius: var(--tw-radius-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    transition: width 0.8s ease;
}
.tw-bar-rose    { background: linear-gradient(90deg, var(--tw-rose-mid) 0%, var(--tw-rose) 100%); }
.tw-bar-champ   { background: linear-gradient(90deg, var(--tw-champ-mid) 0%, var(--tw-champ) 100%); }
.tw-bar-onyx    { background: linear-gradient(90deg, var(--tw-onyx-mid) 0%, var(--tw-onyx) 100%); }
.tw-bar-success { background: linear-gradient(90deg, #5A9A88 0%, var(--tw-success) 100%); }


/* ============================================
   DIVIDERS
============================================ */
.tw-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tw-border) 20%, var(--tw-border) 80%, transparent);
    margin: 36px 0;
}
.tw-divider-rose {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tw-rose-border) 20%, var(--tw-rose-border) 80%, transparent);
    margin: 28px 0;
}
hr.tw-hr { border: none; border-top: 1px solid var(--tw-border); margin: 24px 0; }


/* ============================================
   INFO BOX
============================================ */
.tw-info-box {
    background: var(--tw-ivory-mid);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    padding: 16px 18px;
    margin: 16px 0;
}
.tw-info-box-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tw-onyx);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tw-info-box ul { list-style: none; padding: 0; margin: 0; }
.tw-info-box li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--tw-border);
    font-size: 0.84rem;
    color: var(--tw-text-muted);
    line-height: 1.5;
}
.tw-info-box li:last-child { border-bottom: none; }
.tw-info-box-rose {
    background: var(--tw-rose-light);
    border-color: var(--tw-rose-border);
    border-left: 3px solid var(--tw-rose);
}
.tw-info-box-champ {
    background: var(--tw-champ-light);
    border-color: var(--tw-champ-border);
    border-left: 3px solid var(--tw-champ);
}


/* ============================================
   ANIMATIONS
============================================ */
@keyframes tw-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tw-fade-up            { animation: tw-fade-up 0.55s ease both; }
.tw-fade-up-delay-1    { animation-delay: 0.10s; }
.tw-fade-up-delay-2    { animation-delay: 0.20s; }
.tw-fade-up-delay-3    { animation-delay: 0.30s; }
.tw-fade-up-delay-4    { animation-delay: 0.40s; }

@keyframes tw-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.tw-shimmer-text {
    background: linear-gradient(90deg, var(--tw-rose-dark) 0%, var(--tw-rose-mid) 40%, var(--tw-champ) 60%, var(--tw-rose-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tw-shimmer 3s linear infinite;
}


/* ============================================
   UTILITY CLASSES
============================================ */

/* Text align */
.tw-text-center { text-align: center; }
.tw-text-left   { text-align: left; }
.tw-text-right  { text-align: right; }

/* Font weights */
.tw-font-normal  { font-weight: 400; }
.tw-font-medium  { font-weight: 500; }
.tw-font-semibold{ font-weight: 600; }
.tw-font-bold    { font-weight: 700; }

/* Spacing — margin top */
.tw-mt-1 { margin-top: 0.5rem; }
.tw-mt-2 { margin-top: 1rem; }
.tw-mt-3 { margin-top: 1.5rem; }
.tw-mt-4 { margin-top: 2rem; }
.tw-mt-5 { margin-top: 3rem; }

/* Spacing — margin bottom */
.tw-mb-0 { margin-bottom: 0; }
.tw-mb-1 { margin-bottom: 0.5rem; }
.tw-mb-2 { margin-bottom: 1rem; }
.tw-mb-3 { margin-bottom: 1.5rem; }
.tw-mb-4 { margin-bottom: 2rem; }
.tw-mb-5 { margin-bottom: 3rem; }

/* Spacing — margin Y */
.tw-my-2 { margin-top: 1rem;   margin-bottom: 1rem; }
.tw-my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.tw-my-4 { margin-top: 2rem;   margin-bottom: 2rem; }

/* Spacing — padding */
.tw-p-2  { padding: 1rem; }
.tw-p-3  { padding: 1.5rem; }
.tw-p-4  { padding: 2rem; }
.tw-px-2 { padding-left: 1rem;   padding-right: 1rem; }
.tw-px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.tw-py-2 { padding-top: 1rem;    padding-bottom: 1rem; }
.tw-py-3 { padding-top: 1.5rem;  padding-bottom: 1.5rem; }

/* Display */
.tw-block        { display: block; }
.tw-inline-block { display: inline-block; }
.tw-flex         { display: flex; }
.tw-flex-center  { display: flex; justify-content: center; align-items: center; }
.tw-flex-between { display: flex; justify-content: space-between; align-items: center; }
.tw-grid         { display: grid; }
.tw-hidden       { display: none; }
.tw-w-full       { width: 100%; }
.tw-relative     { position: relative; }
.tw-rounded      { border-radius: var(--tw-radius); }
.tw-rounded-lg   { border-radius: var(--tw-radius-lg); }
.tw-rounded-full { border-radius: var(--tw-radius-full); }

/* Responsive hide/show */
@media (max-width: 768px)  { .tw-hide-mobile  { display: none !important; } }
@media (min-width: 769px)  { .tw-hide-desktop { display: none !important; } }
@media (max-width: 1024px) { .tw-hide-tablet  { display: none !important; } }


/* ============================================
   PRINT STYLES
============================================ */
@media print {
    .tw-btn,
    .tw-cta-banner,
    .tw-lead-magnet,
    .tw-jump-nav,
    .tw-sidebar,
    .tw-scroll-top,
    .tw-sticky-cta {
        display: none !important;
    }
    .tw-product-card,
    .tw-section-box {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    .tw-wrap { background: #fff; }
}


/* ============================================
   ACCESSIBILITY
============================================ */
.tw-btn:focus-visible,
.tw-faq-q:focus-visible,
.tw-jump-nav a:focus-visible,
.tw-internal-link:focus-visible {
    outline: 2px solid var(--tw-rose);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tw-fade-up,
    .tw-fade-up-delay-1,
    .tw-fade-up-delay-2,
    .tw-fade-up-delay-3,
    .tw-fade-up-delay-4 {
        animation: none;
    }
    .tw-btn,
    .tw-product-card,
    .tw-faq-a,
    .tw-faq-arrow,
    .tw-sticky-cta,
    .tw-scroll-top {
        transition: none;
    }
}
