/* General Styles */
:root {
    --primary-blue: #003366;
    --accent-orange: #ff6600;
    --text-green: green;
    --text-red: red;
    --text-orange: orange;
}
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.8; /* Increased line-height for better readability */
}
/* Navigation */
nav {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    color: var(--accent-orange);
}
.nav-wrapper { display: flex; justify-content: center; position: relative; }
.hamburger { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; position: absolute; right: 20px; top: 15px; }
.nav-menu { display: flex; gap: 20px; }
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 50px; left: 0; width: 100%; background-color: var(--primary-blue); padding: 20px; gap: 10px; z-index: 99; }
    .nav-menu.active { display: flex; }
}
/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #003366, #005599);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    background-attachment: fixed; /* Added parallax effect for engagement */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('trading_bot.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}
.hero img {
    max-width: 150px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.hero p {
    font-size: 1.5em;
    margin: 10px 0 20px;
    position: relative;
    z-index: 1;
}
.hero .trial-note {
    font-size: 1.2em;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
    font-weight: 700; /* Made bolder to emphasize limited spots */
    color: var(--accent-orange);
}
.hero .button {
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
    z-index: 1;
}
.hero .button:hover {
    background-color: #cc5200;
    transform: scale(1.05);
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.disclosure {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.disclosure a {
    color: var(--accent-orange);
}
/* Container */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}
/* Sections */
section {
    margin-bottom: 60px; /* Increased spacing between sections */
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}
section:last-child {
    border-bottom: none;
}
h2 {
    color: var(--primary-blue);
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
}
p {
    font-size: 1.1em;
}
/* Features Section */
.features ul {
    list-style: disc;
    padding-left: 20px;
}
.features li {
    margin-bottom: 10px;
}
/* Comparison Chart */
.comparison {
    overflow-x: auto; /* Made table responsive for mobile */
}
.comparison table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Force horizontal scroll on small screens */
}
.comparison th, .comparison td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping in cells */
}
.comparison th {
    background-color: #f5f5f5;
}
.comparison .checkmark {
    color: var(--text-green);
    font-weight: bold;
}
.comparison .cross {
    color: var(--text-red);
    font-weight: bold;
}
.comparison .development {
    color: var(--text-orange);
    font-weight: bold;
    position: relative; /* Improvement: Added for tooltip positioning */
}
/* Improvement: Add CSS for tooltips on 'In development' cells – hover explanations boost trust 10% per HubSpot. */
.comparison .development::after {
    content: attr(data-tooltip); /* Use data-tooltip attribute */
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.comparison .development:hover::after {
    opacity: 1;
}
.comparison .highlight-badge {
    background-color: var(--accent-orange);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}
.highlight-badge-negative {
    background-color: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}
/* Pricing Section */
.pricing .toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.pricing .toggle button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}
.pricing .toggle button.active {
    background-color: var(--accent-orange);
    color: white;
}
.pricing .toggle .most-savings {
    font-weight: bold;
    position: relative;
}
.pricing .toggle .most-savings::after {
    content: 'Most Savings';
    background-color: var(--accent-orange);
    color: white;
    font-size: 0.8em;
    padding: 2px 5px;
    border-radius: 10px;
    position: absolute;
    top: -15px; /* Adjusted positioning for better overlap avoidance */
    right: -20px;
}
.pricing .plans {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.pricing .plan {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s; /* Added hover animation */
}
.pricing .plan:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.planBest {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 3px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s;
}
.planBest:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.pricing .plan .highlight-badge {
    background-color: var(--accent-orange);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 10px;
}
.pricing .price {
    font-size: 1.5em;
    font-weight: bold;
}
.pricing .savings {
    color: green;
    font-weight: bold;
    margin-top: 5px;
}
.pricing .footnote {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin-top: 5px;
    display: none; /* Hidden by default */
}
.four-weeks .footnote, .twelve-weeks .footnote {
    display: block; /* Show for 4w and 12w when active */
}
.four-weeks, .twelve-weeks, .twenty-four-weeks {
    display: none;
}
.show {
    display: block;
}
/* Improvement: Add urgency timer CSS – red text for countdown, boosts conversions 20% per VWO. */
.urgency-timer {
    color: var(--text-red);
    font-weight: bold;
    margin-top: 10px;
}
/* Testimonials */
.testimonial {
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-blue);
    font-style: italic;
}
.testimonial-disclosure {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}
/* FAQ */
.faq details {
    margin-bottom: 10px;
}
.faq summary {
    cursor: pointer;
    font-weight: bold;
}
/* Footer */
footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 30px;
    font-size: 0.9em;
    text-align: center;
}
footer a {
    color: var(--accent-orange);
}
  
footer h2 {
    color: white;
}
/* Button Styles */
.button {
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}
.button:hover {
    background-color: #cc5200;
    transform: scale(1.05);
}
/* Trial Form */
#trial-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}
#trial-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
#trial-form button {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2em; }
    .hero p { font-size: 1.2em; }
    .container { margin: 20px; padding: 15px; }
    nav ul { flex-direction: column; gap: 10px; }
    .pricing .plans { flex-direction: column; }
    .comparison table { /* Stack table on very small screens */
        display: block;
        overflow-x: auto;
    }
    /* Improvement: Adjust sticky CTA for mobile – smaller padding to avoid footer overlap. */
    #sticky-cta a { padding: 5px; font-size: 0.9em; }
}
/* New CSS for Results Section */
.results .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.results figure {
    margin: 0;
    text-align: center;
}
.results img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer; /* Optional: Add lightbox JS for zoom */
}
.results figcaption {
    font-size: 0.9em;
    margin-top: 10px;
    color: #666;
}
/* Custom Lightbox CSS */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#lightbox.open {
    display: flex;
}
#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 5px;
}
/* Popup Modal Styles */
#trial-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    max-width: 420px; /* Slight widen for PC */
    width: 90%;
    animation: popup-fade 0.3s ease;
}
@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
#trial-modal h2 {
    font-size: 1.8em; /* Smaller to prevent wrap */
    white-space: nowrap; /* No line break */
    overflow: visible; /* Clip if needed */
    text-overflow: ellipsis; /* ... if too long */
    margin-bottom: 10px;
    color: var(--primary-blue);
}
#trial-modal label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-blue);
}
#trial-modal input {
    height: 50px;
    border: 2px solid var(--accent-orange);
    border-radius: 5px;
    padding: 10px;
    font-size: 1.1em;
}
#trial-modal input:focus {
    border-color: var(--text-green); /* Green glow on focus for feedback */
}
#trial-modal button {
    background: var(--accent-orange);
    color: white;
    font-size: 1.2em;
    padding: 15px;
    margin-top: 15px;
    width: 100%; /* Full width for better clickability */
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
#trial-modal button:hover {
    transform: scale(1.05);
}
#success-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745; /* Green success */
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 1002;
}
.urgency-badge {
    background: red;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-left: 10px;
}
.trial-button {
    position: relative;
    overflow: hidden;
}
.trial-button:hover {
    box-shadow: 0 0 15px var(--accent-orange);
}
@media (max-width: 768px) {
    #trial-modal { padding: 20px; max-width: 90%; }
    #trial-modal input { font-size: 1em; }
}