/* =========================================================
   CSS VARIABLES & RESET
========================================================= */
:root {
    --deep-ocean:      #0a1628;
    --midnight-blue:   #121d33;
    --ocean-blue:      #1e3a5f;
    --teal-primary:    #2dd4bf;
    --teal-dark:       #0d9488;
    --teal-soft:       rgba(45, 212, 191, 0.12);
    --teal-glow:       rgba(45, 212, 191, 0.25);
    --coral-accent:    #ff7a6b;
    --gold-accent:     #f5b942;
    --success-green:   #7dd3a0;
    --text-primary:    #e8eff5;
    --text-secondary:  #94a3b8;
    --text-muted:      #64748b;
    --glass-border:    rgba(255, 255, 255, 0.08);
    --glass-bg:        rgba(30, 58, 95, 0.35);
    --bubble-user-bg:  #2dd4bf;
    --bubble-ai-bg:    rgba(18, 29, 51, 0.75);
    --input-bg:        rgba(18, 29, 51, 0.65);
    --header-height:   62px;
    --disclaimer-h:    32px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--deep-ocean);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================================
   BACKGROUND CANVAS
========================================================= */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(45, 212, 191, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(30, 58, 95, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--deep-ocean) 0%, var(--midnight-blue) 50%, var(--deep-ocean) 100%);
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 30s ease-in-out infinite;
    opacity: 0.18;
    pointer-events: none;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--teal-primary) 0%, transparent 70%);
    top: -10%; left: -20%;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--ocean-blue) 0%, transparent 70%);
    bottom: 10%; right: -10%;
    animation-delay: -15s;
}

@keyframes float {
    0%,100% { transform: translate(0,0) scale(1); }
    25%      { transform: translate(30px,-30px) scale(1.03); }
    50%      { transform: translate(-20px,20px) scale(0.97); }
    75%      { transform: translate(20px,30px) scale(1.01); }
}

/* =========================================================
   DISCLAIMER BANNER
========================================================= */
.disclaimer-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--disclaimer-h);
    background: rgba(10, 22, 40, 0.97);
    border-bottom: 1px solid rgba(245, 185, 66, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    font-size: 0.695rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    text-align: center;
}

/* =========================================================
   CHAT HEADER
========================================================= */
.chat-header {
    position: fixed;
    top: var(--disclaimer-h);
    left: 0; right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--ocean-blue) 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--teal-glow);
}

.logo-icon svg {
    width: 20px; height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    background: rgba(125, 211, 160, 0.08);
    border: 1px solid rgba(125, 211, 160, 0.2);
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--success-green);
    letter-spacing: 0.04em;
}

.live-dot {
    width: 6px; height: 6px;
    background: var(--success-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--success-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.85); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-signin {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease;
}
.btn-signin:hover { color: var(--text-primary); }

.btn-trial {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--deep-ocean);
    background: var(--teal-primary);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--teal-glow);
    white-space: nowrap;
}
.btn-trial:hover {
    background: #3de8d3;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--teal-glow);
}

/* =========================================================
   CHAT SECTION — full viewport hero
========================================================= */
.chat-section {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: calc(var(--disclaimer-h) + var(--header-height));
}

/* messages scroll area */
.messages-area {
    flex: 1;
    min-height: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}
.messages-area::-webkit-scrollbar { width: 8px; }
.messages-area::-webkit-scrollbar-track { background: transparent; }
.messages-area::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.messages-inner {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* =========================================================
   WELCOME SCREEN
========================================================= */
/* =========================================================
   HERO OVERLAY (inside chat welcome screen)
========================================================= */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .highlight {
    color: var(--teal-primary);
}

.rotating-wrap {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.2em;
    min-width: 280px;
}

.rotating-words {
    display: block;
    position: relative;
    height: 100%;
}

.rotating-word {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--teal-primary);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.rotating-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-word.exit {
    opacity: 0;
    transform: translateY(-40px);
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-cta-primary {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-ocean);
    background: var(--teal-primary);
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px var(--teal-glow);
    text-decoration: none;
}
.hero-cta-primary:hover {
    background: #3de8d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--teal-glow);
}

.hero-cta-secondary {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.hero-cta-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.3);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.25rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-trust-value {
    color: var(--teal-primary);
    font-weight: 600;
}

/* Chat container within hero */
.hero-chat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    gap: 0.5rem;
}

/* quick query chips on welcome */
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    max-width: 560px;
    margin-top: 0;
}

.quick-chip {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.quick-chip:hover {
    color: var(--teal-primary);
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.06);
    transform: translateY(-1px);
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}
.scroll-hint svg {
    width: 18px; height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: bounce-down 1.8s ease-in-out infinite;
}

@keyframes bounce-down {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

/* =========================================================
   MESSAGE BUBBLES
========================================================= */
.message-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.message-row.user { flex-direction: row-reverse; }

.msg-avatar {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.msg-avatar.ai {
    background: var(--teal-primary);
    color: var(--deep-ocean);
    box-shadow: 0 4px 10px rgba(45, 212, 191, 0.3);
}
.msg-avatar.user {
    background: var(--ocean-blue);
    color: var(--text-primary);
}

.msg-bubble {
    max-width: 78%;
    padding: 0.875rem 1.1rem;
    border-radius: 14px;
    font-size: 0.9375rem;
    line-height: 1.6;
    word-break: break-word;
}

.message-row.user .msg-bubble {
    background: var(--teal-primary);
    color: var(--deep-ocean);
    border-radius: 14px 4px 14px 14px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(45, 212, 191, 0.25);
}

.message-row.ai .msg-bubble {
    background: var(--bubble-ai-bg);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 4px 14px 14px 14px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Teaser response elements */
.teaser-tickers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.teaser-ticker-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
}

.teaser-ticker-row.blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.ticker-symbol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 52px;
}

.verdict-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.verdict-pill.bull {
    background: rgba(125, 211, 160, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(125, 211, 160, 0.3);
}
.verdict-pill.bear {
    background: rgba(255, 122, 107, 0.12);
    color: var(--coral-accent);
    border: 1px solid rgba(255, 122, 107, 0.25);
}
.verdict-pill.max {
    background: rgba(245, 185, 66, 0.12);
    color: var(--gold-accent);
    border: 1px solid rgba(245, 185, 66, 0.25);
}

.ticker-conf {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.teaser-lock-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(45, 212, 191, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 10px;
}

.lock-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lock-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.lock-cta-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--deep-ocean);
    background: var(--teal-primary);
    border: none;
    border-radius: 7px;
    padding: 0.45rem 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.lock-cta-btn:hover {
    background: #3de8d3;
    transform: translateY(-1px);
}

/* =========================================================
   LOADING DOTS
========================================================= */
.loading-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0;
}
.loading-dots span {
    width: 7px; height: 7px;
    background: var(--text-secondary);
    border-radius: 50%;
    display: block;
    animation: dot-bounce 1.4s ease-in-out infinite;
    opacity: 0.6;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
    0%,80%,100% { transform: translateY(0); }
    40%          { transform: translateY(-8px); }
}

/* =========================================================
   CHAT INPUT BAR
========================================================= */
.input-bar {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: linear-gradient(to top, rgba(10,22,40,0.98) 60%, transparent);
}

.input-inner {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.input-box {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 0.625rem 0.625rem 0.625rem 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    transition: border-color 0.2s ease;
}
.input-box:focus-within {
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(45, 212, 191, 0.12);
}

.chat-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    min-height: 24px;
    max-height: 160px;
    overflow-y: hidden;
    caret-color: var(--teal-primary);
    -webkit-text-size-adjust: 100%;
}
.chat-textarea::placeholder { color: var(--text-muted); }
.chat-textarea:focus { outline: none; }

.input-btn-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.btn-quick-query {
    width: 38px; height: 38px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.07);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    position: relative;
}
.btn-quick-query:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}
.btn-quick-query svg {
    width: 18px; height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-send {
    width: 38px; height: 38px;
    border-radius: 9px;
    border: none;
    background: var(--teal-primary);
    color: var(--deep-ocean);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}
.btn-send:hover { background: #3de8d3; transform: scale(1.04); }
.btn-send:disabled {
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.btn-send svg {
    width: 17px; height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-hint {
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* =========================================================
   QUICK QUERY PANEL (popup)
========================================================= */
.quick-panel-wrap {
    position: relative;
}

.quick-panel {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 300px;
    max-width: calc(100vw - 24px);
    background: rgba(14, 22, 40, 0.96);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 50;
}
.quick-panel.open { display: block; }

.quick-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.quick-panel-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}
.quick-panel-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.quick-panel-body {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem;
}

.quick-category-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.5rem 0.625rem 0.3rem;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.quick-item:hover { background: rgba(255,255,255,0.06); }

.quick-item-icon {
    width: 26px; height: 26px;
    border-radius: 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.quick-item-label {
    font-size: 0.8125rem;
    color: var(--text-primary);
    line-height: 1.3;
}

/* =========================================================
   SAMPLE REPORT PREVIEW
========================================================= */
.report-preview-section {
    padding: 4rem 1.5rem;
    background: rgba(10, 22, 40, 0.6);
}

.rp-shell {
    width: min(620px, 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    position: relative;
}

/* top bar */
.rp-topbar {
    background: var(--midnight-blue);
    border-bottom: 1px solid rgba(245,185,66,0.25);
    padding: 0.3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--gold-accent);
    text-transform: uppercase;
}

.rp-topbar span { color: rgba(245,185,66,0.4); }

/* header */
.rp-header {
    background: white;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.rp-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

.rp-logo-text em {
    color: var(--teal-primary);
    font-style: normal;
}

.rp-meta {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.15rem;
    font-family: 'Outfit', sans-serif;
}

.rp-meta strong { color: #111; }

.rp-member-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* stats bar */
.rp-stats {
    background: white;
    border-bottom: 2px solid var(--teal-primary);
    padding: 0.75rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.rp-stat {
    text-align: center;
    border-right: 1px solid #e5e7eb;
    padding: 0 0.25rem;
}

.rp-stat:last-child { border-right: none; }

.rp-stat-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--teal-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.rp-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

/* pick card */
.rp-pick {
    background: white;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.875rem 1.25rem;
}

.rp-pick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.rp-pick-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rp-pick-num {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
}

.rp-ticker {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
}

.rp-signal-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.65rem;
    border-radius: 3px;
}

.rp-signal-pill.short {
    border: 1px solid #dc2626;
    color: #dc2626;
}

.rp-signal-pill.lean {
    border: 1px solid #d97706;
    color: #d97706;
}

.rp-signal-pill.buy {
    border: 1px solid #059669;
    color: #059669;
}

.rp-pick-right {
    text-align: right;
}

.rp-score {
    font-family: 'Playfair Display', serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #111;
}

.rp-flow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: var(--teal-primary);
    font-weight: 500;
}

.rp-company {
    font-size: 0.74rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.rp-analysis {
    font-size: 0.78rem;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.rp-analysis strong { color: #111; }

/* trade plan box */
.rp-trade-plan {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.rp-trade-header {
    background: #f9fafb;
    border-bottom: 2px solid var(--teal-primary);
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rp-trade-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-primary);
}

.rp-atr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #9ca3af;
}

.rp-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.rp-level {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
}

.rp-level:nth-child(2n) { border-right: none; }
.rp-level:nth-last-child(-n+2) { border-bottom: none; }

.rp-level-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.rp-level-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.825rem;
    font-weight: 700;
    color: #dc2626;
}

.rp-level-value.green { color: #059669; }

.rp-level-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

/* signal rules */
.rp-rules {
    border-top: 1px dashed #e5e7eb;
    padding: 0.625rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rp-rule {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.rp-rule-check { color: #059669; font-weight: 700; flex-shrink: 0; }
.rp-rule-x     { color: #dc2626; font-weight: 700; flex-shrink: 0; }

/* bottom stats bar */
.rp-pick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

.rp-pick-stat {
    text-align: center;
    padding: 0.375rem 0;
    border-right: 1px solid #e5e7eb;
}

.rp-pick-stat:last-child { border-right: none; }

.rp-pick-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    display: block;
}

.rp-pick-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal-primary);
    display: block;
}

/* confidence row */
.rp-confidence {
    padding: 0.375rem 0.75rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    background: #f9fafb;
}

.rp-conf-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.rp-conf-value {
    font-weight: 700;
    color: var(--teal-primary);
}

.rp-conf-tag {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    color: #6b7280;
}

/* locked picks overlay */
.rp-locked-group {
    position: relative;
}

.rp-locked-pick {
    background: white;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.875rem 1.25rem;
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.rp-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    padding: 1rem;
}

.rp-lock-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rp-lock-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.5;
}

.rp-lock-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.rp-lock-free {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--deep-ocean);
    background: var(--teal-primary);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(45,212,191,0.35);
    transition: all 0.2s ease;
}

.rp-lock-free:hover {
    background: #3de8d3;
    transform: translateY(-1px);
}

.rp-lock-paid {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rp-lock-paid:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-primary);
}

/* =========================================================
   REPORT SIDE-BY-SIDE + THUMBNAIL + MODAL
========================================================= */
.rp-sideby {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.rp-sideby-text {
    flex: 1;
    min-width: 0;
}

.rp-sideby-thumb { flex-shrink: 0; }

/* thumbnail frame — clips the scaled-down shell */
.rp-thumb-frame {
    width: 280px;
    height: 380px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(45, 212, 191, 0.22);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rp-thumb-frame:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 14px 38px rgba(0,0,0,0.55), 0 0 0 1px rgba(45,212,191,0.1);
}

/* shell scaled down inside thumbnail */
.rp-thumb-frame .rp-shell {
    position: absolute;
    top: 0; left: 0;
    transform: scale(0.4516);
    transform-origin: top left;
    pointer-events: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
}

/* gradient + expand hint overlay */
.rp-thumb-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.82) 0%, rgba(10,22,40,0.12) 48%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.875rem;
}

.rp-thumb-expand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rp-thumb-expand svg {
    width: 13px; height: 13px;
    stroke: rgba(255,255,255,0.85);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* expand button in text column */
.rp-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal-primary);
    background: transparent;
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rp-expand-btn:hover {
    background: rgba(45, 212, 191, 0.07);
    border-color: rgba(45, 212, 191, 0.6);
}

.rp-expand-btn svg {
    width: 15px; height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* modal overlay */
.rp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(5, 12, 24, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.rp-modal.active { display: flex; }

.rp-modal-box {
    position: relative;
    width: 75vw;
    max-width: 800px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 14px;
    animation: rpSlideIn 0.25s ease;
}

@keyframes rpSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(14px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.rp-modal-box .rp-shell {
    width: 100% !important;
    border-radius: 10px;
}

.rp-modal-close {
    position: absolute;
    top: -14px; right: -14px;
    z-index: 10;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--midnight-blue);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rp-modal-close:hover {
    background: var(--ocean-blue);
    color: var(--text-primary);
}

.rp-modal-close svg {
    width: 15px; height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .rp-sideby { flex-direction: column; gap: 2.5rem; align-items: flex-start; }
    .rp-modal-box { width: 95vw; }
}

/* =========================================================
   SCROLL-DOWN CHEVRON (between chat and marketing)
========================================================= */
.scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 2.5rem 0 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.scroll-down-indicator:hover { color: var(--teal-primary); }
.scroll-down-indicator svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: bounce-down 2s ease-in-out infinite;
}

/* =========================================================
   SECTION LAYOUT (below fold)
========================================================= */
.section {
    padding: 5rem 1.5rem;
}

.section-inner {
    max-width: 1060px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal-primary);
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.65;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 0;
}

/* =========================================================
   TIER COMPARISON CARDS
========================================================= */
.tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.tier-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tier-card.featured {
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12), 0 12px 40px rgba(0,0,0,0.2);
}

.tier-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(45,212,191,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tier-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.tier-badge.free {
    background: rgba(125, 211, 160, 0.12);
    color: var(--success-green);
    border: 1px solid rgba(125, 211, 160, 0.25);
}
.tier-badge.paid {
    background: rgba(45, 212, 191, 0.12);
    color: var(--teal-primary);
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.tier-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tier-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tier-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.tier-feature .feat-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.tier-feature .feat-icon.yes { color: var(--teal-primary); }
.tier-feature .feat-icon.no  { color: var(--text-muted); }

.tier-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.tier-cta.free-cta {
    background: rgba(125, 211, 160, 0.1);
    border: 1px solid rgba(125, 211, 160, 0.3);
    color: var(--success-green);
}
.tier-cta.free-cta:hover {
    background: rgba(125, 211, 160, 0.18);
}

.tier-cta.paid-cta {
    background: var(--teal-primary);
    color: var(--deep-ocean);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.3);
}
.tier-cta.paid-cta:hover {
    background: #3de8d3;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.4);
}

/* =========================================================
   REPORT CARD SECTION
========================================================= */
.report-card-section {
    background: rgba(18, 29, 51, 0.5);
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--teal-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Win rate table */
.report-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    margin-top: 2.5rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

.report-table thead th {
    padding: 0.55rem 0.6rem;
    text-align: left;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(10,22,40,0.6);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}
.report-table thead th:first-child { border-radius: 14px 0 0 0; }
.report-table thead th:last-child  { border-radius: 0 14px 0 0; }

.report-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.12s ease;
}
.report-table tbody tr:last-child { border-bottom: none; }
.report-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.report-table tbody td {
    padding: 0.45rem 0.6rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-size: 0.78rem;
}
.report-table tbody td.date-cell {
    color: var(--text-primary);
    font-weight: 500;
}

.win-rate-cell {
    font-weight: 600;
}
.win-rate-cell.green { color: var(--success-green); }
.win-rate-cell.yellow { color: var(--gold-accent); }
.win-rate-cell.red { color: var(--coral-accent); }

.pl-cell.pos { color: var(--success-green); }
.pl-cell.neg { color: var(--coral-accent); }

/* compact table variant */
.report-table--compact thead th { padding: 0.45rem 0.5rem; }
.report-table--compact tbody td { padding: 0.4rem 0.5rem; font-size: 0.75rem; }

.horizon-row td {
    padding: 0.875rem 1rem;
    background: rgba(10,22,40,0.5);
}

/* =========================================================
   FINAL CTA SECTION
========================================================= */
.cta-section {
    padding: 5rem 1.5rem 6rem;
    text-align: center;
}

.cta-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(45,212,191,0.08);
}

.cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}
.email-input::placeholder { color: var(--text-muted); }
.email-input:focus { border-color: rgba(45,212,191,0.5); }

.email-submit {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--deep-ocean);
    background: var(--teal-primary);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(45,212,191,0.3);
}
.email-submit:hover {
    background: #3de8d3;
    transform: translateY(-1px);
}

.cta-trust {
    margin-top: 1.25rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
}

.footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-secondary); }

/* =========================================================
   SIGN-UP MODAL
========================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(5, 12, 24, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.visible {
    display: flex;
}

.modal-card {
    background: rgba(18, 29, 51, 0.96);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 22px;
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 28px 70px rgba(0,0,0,0.45);
    position: relative;
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { transform: scale(0.94) translateY(10px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    width: 30px; height: 30px;
    border: none;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 1.75rem;
}

.modal-tier-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tab {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.modal-tab.active {
    border-color: rgba(45,212,191,0.4);
    background: rgba(45,212,191,0.07);
}

.modal-tab-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.modal-tab-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-tab.active .modal-tab-name { color: var(--teal-primary); }

.modal-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-feature span.check {
    color: var(--teal-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.modal-email-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-email-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}
.modal-email-input::placeholder { color: var(--text-muted); }
.modal-email-input:focus { border-color: rgba(45,212,191,0.5); }

.modal-submit-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--deep-ocean);
    background: var(--teal-primary);
    border: none;
    border-radius: 10px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(45,212,191,0.3);
}
.modal-submit-btn:hover {
    background: #3de8d3;
    transform: translateY(-1px);
}

.modal-disclaimer {
    margin-top: 0.875rem;
    font-size: 0.775rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.modal-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}
.modal-success.visible { display: block; }
.modal-success-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.modal-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.modal-success p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =========================================================
   STATUS TOAST
========================================================= */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(18,29,51,0.96);
    border: 1px solid rgba(45,212,191,0.3);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    z-index: 400;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100vw - 2rem);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Feature Grid (massive.com inspired) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(45, 212, 191, 0.25);
    transform: translateY(-2px);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-cta {
    text-align: center;
    margin-top: 3rem;
}

.features-cta .btn-trial {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* ── Tablet / small laptop ─────────────────────────────── */
@media (max-width: 900px) {
    .rp-sideby { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .rp-modal-box { width: 95vw; }
}

@media (max-width: 768px) {
    /* Hero overlay */
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-cta-group { flex-direction: column; gap: 0.75rem; }
    .hero-cta-primary, .hero-cta-secondary { width: 100%; max-width: 300px; text-align: center; }
    .hero-trust { flex-direction: column; gap: 0.75rem; }

    /* Header */
    .header-live { display: none; }
    .chat-header { padding: 0 1rem; }
    .header-inner { gap: 0.5rem; }
    .header-actions > a:first-child { display: none; }
    .btn-trial { padding: 0.45rem 0.875rem; font-size: 0.8375rem; }

    /* Sections */
    .section { padding: 3rem 1.25rem; }
    .section-title { font-size: 1.875rem; }
    .section-desc { font-size: 0.9375rem; }

    /* Report preview */
    .report-preview-section { padding: 2.5rem 1.25rem; }
    .rp-shell { width: 100% !important; }
    .rp-stats { grid-template-columns: repeat(2, 1fr); }
    .rp-sideby-thumb { display: none; }

    /* Stat boxes */
    .report-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 1.5rem; }

    /* Pricing / Feature grid */
    .tier-grid { grid-template-columns: 1fr; }
    .tier-name { font-size: 1.375rem; }
    .tier-card { padding: 1.5rem; }
    .feature-grid { grid-template-columns: 1fr 1fr; }

    /* CTA */
    .cta-section { padding: 3rem 1.25rem 4rem; }
    .cta-card { padding: 2.5rem 1.5rem; }
    .cta-card h2 { font-size: 1.75rem; }
    .email-form { flex-direction: column; }

    /* Modal */
    .modal-card { padding: 2rem 1.5rem; }
    .modal-tier-tabs { gap: 0.375rem; }

    /* Messages */
    .messages-area::-webkit-scrollbar { width: 0; }
    .messages-inner { padding: 1.5rem 1rem 1rem; gap: 1rem; }
    .msg-bubble { max-width: 88%; font-size: 0.9rem; padding: 0.75rem 0.9rem; }
    .msg-avatar { width: 26px; height: 26px; font-size: 0.72rem; }

    /* Welcome */
    .welcome-screen { padding: 2rem 1rem 1.5rem; gap: 1rem; }
    .welcome-sub { font-size: 0.875rem; }
    .quick-chips { gap: 0.375rem; }
    .quick-chip { font-size: 0.775rem; padding: 0.35rem 0.75rem; }

    /* Input */
    .input-bar { padding: 0.625rem 0.875rem 1rem; }
    .input-box { padding: 0.5rem 0.5rem 0.5rem 0.875rem; border-radius: 12px; }
    .chat-textarea { font-size: 16px; } /* 16px prevents iOS zoom */
    .btn-send { width: 34px; height: 34px; border-radius: 8px; }
    .btn-quick-query { width: 34px; height: 34px; border-radius: 8px; }
    .input-hint { display: none; }

    /* Footer */
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ── Large phone ────────────────────────────────────────── */
@media (max-width: 640px) {
    .section-title { font-size: 1.625rem; }
    .rp-stats { grid-template-columns: 1fr 1fr; }
    .rp-topbar { font-size: 0.55rem; }
    .tier-features { gap: 0.625rem; }
    .tier-feature { font-size: 0.85rem; }
}

/* ── Medium phone ───────────────────────────────────────── */
@media (max-width: 480px) {
    /* Disclaimer hidden — reclaim height */
    :root { --disclaimer-h: 0px; }
    .disclaimer-banner { display: none; }

    /* Hero overlay */
    .hero-title { font-size: 1.875rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-chat-label { font-size: 0.65rem; }

    /* Header */
    .chat-header { padding: 0 0.75rem; }
    .header-actions { gap: 0.375rem; }
    .btn-signin { padding: 0.35rem 0.5rem; font-size: 0.8rem; }
    .btn-trial { padding: 0.4rem 0.65rem; font-size: 0.8rem; }
    .logo-text { font-size: 1.1rem; }

    /* Tables — condensed for mobile */
    .report-table thead th { padding: 0.4rem 0.35rem; font-size: 0.62rem; }
    .report-table tbody td { padding: 0.35rem 0.35rem; font-size: 0.7rem; }
    .report-table--compact thead th { padding: 0.35rem 0.3rem; font-size: 0.6rem; }
    .report-table--compact tbody td { padding: 0.3rem 0.3rem; font-size: 0.68rem; }

    /* Sections */
    .section { padding: 2.5rem 1rem; }
    .section-title { font-size: 1.5rem; }

    /* Stats grid → 2 col */
    .report-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 1.375rem; }
    .stat-label { font-size: 0.75rem; }

    /* Report preview — show full-width shell, no thumbnail */
    .rp-shell { border-radius: 8px; }
    .rp-stats { grid-template-columns: 1fr 1fr; }
    .rp-stat-value { font-size: 0.875rem; }
    .rp-stat-label { font-size: 0.55rem; }
    .rp-pick { padding: 0.75rem 1rem; }
    .rp-levels { grid-template-columns: 1fr 1fr; }
    .rp-locked-pick { padding: 0.75rem 1rem; }
    .rp-lock-heading { font-size: 0.875rem; }
    .rp-lock-sub { font-size: 0.75rem; }
    .rp-lock-btns { gap: 0.5rem; }
    .rp-lock-free, .rp-lock-paid { font-size: 0.8125rem; padding: 0.5rem 0.875rem; }

    /* Feature grid */
    .feature-grid { grid-template-columns: 1fr; }

    /* Modal */
    .modal-card { padding: 1.75rem 1.25rem; }
    .modal-tier-tabs { flex-direction: column; }

    /* Messages */
    .messages-inner { padding: 1.25rem 0.75rem 0.75rem; }
    .msg-bubble { max-width: 92%; font-size: 0.875rem; padding: 0.65rem 0.8rem; }
    .welcome-title { font-size: 1.375rem; }
    .welcome-screen { padding: 1.5rem 0.75rem 1rem; }
    .quick-chips { max-width: 100%; }

    /* CTA */
    .cta-card { padding: 2rem 1.25rem; }
    .cta-card h2 { font-size: 1.5rem; }

    /* Input */
    .input-bar { padding: 0.5rem 0.75rem 0.875rem; }
    .input-box { padding: 0.45rem 0.45rem 0.45rem 0.75rem; }
}

/* ── Tiny phone ─────────────────────────────────────────── */
@media (max-width: 360px) {
    .header-actions .btn-signin { display: none; }
    .logo-icon { width: 30px; height: 30px; }
    .btn-trial { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
    .section-title { font-size: 1.375rem; }
    .welcome-title { font-size: 1.25rem; }
    .msg-bubble { font-size: 0.8375rem; }
    .stat-value { font-size: 1.25rem; }
    .tier-card { padding: 1.25rem; }
    .report-stats-grid { grid-template-columns: 1fr 1fr; }
}
