/* HeartHealthier Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF3366;
    --primary-dark: #E6295C;
    --secondary: #6C5CE7;
    --accent: #00D9FF;
    --gradient-start: #FF3366;
    --gradient-mid: #FF6B6B;
    --gradient-end: #6C5CE7;
    --dark: #1A1A2E;
    --light: #FFFFFF;
    --gray: #8892B0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 51, 102, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(26, 26, 46, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--light);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.phone-frame {
    background: linear-gradient(135deg, #2D2D44 0%, #1A1A2E 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
    background: linear-gradient(180deg, #1E1E32 0%, #252542 100%);
    border-radius: 32px;
    padding: 24px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.screen-header {
    text-align: center;
    margin-bottom: 24px;
}

.screen-header h3 {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.screen-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.progress-ring {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 12;
}

.progress-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    stroke: url(#gradient);
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 110;
    animation: progress 2s ease-out forwards;
}

@keyframes progress {
    from {
        stroke-dashoffset: 440;
    }
    to {
        stroke-dashoffset: 110;
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text .value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-text .label {
    font-size: 0.75rem;
    color: var(--gray);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 51, 102, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.02);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--gray);
}

/* Beta CTA */
.beta-cta {
    padding: 120px 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(108, 92, 231, 0.1));
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

footer p {
    color: var(--gray);
    font-size: 0.875rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Page Header (FAQ) */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--gray);
    font-size: 1.125rem;
}

/* FAQ Sections */
.faq-section {
    margin-bottom: 48px;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 51, 102, 0.3);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--gray);
    line-height: 1.8;
}

.faq-answer-content p {
    margin-bottom: 16px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.faq-answer-content li {
    margin-bottom: 8px;
}

.faq-answer-content strong {
    color: var(--light);
}

.highlight-box {
    background: rgba(255, 51, 102, 0.1);
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--light);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    color: var(--light);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.data-table td {
    color: var(--gray);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-local {
    background: rgba(0, 217, 255, 0.2);
    color: var(--accent);
}

.badge-server {
    background: rgba(108, 92, 231, 0.2);
    color: var(--secondary);
}

.badge-never {
    background: rgba(0, 200, 83, 0.2);
    color: #00C853;
}

/* ================================================================
   CONCEPT TEST — FRAME VISIBILITY
   The inline UTM script in <head> sets data-campaign on <html>.
   These rules run before first paint (styles.css is render-blocking).
   ================================================================ */
html:not([data-campaign="metabolic"])     .frame--metabolic     { display: none !important; }
html:not([data-campaign="glp1-metabolic"]) .frame--glp1-metabolic { display: none !important; }
html:not([data-campaign="glp1-hesitant"]) .frame--glp1-hesitant  { display: none !important; }

/* ================================================================
   TEST HERO SECTION
   ================================================================ */
.test-hero {
    padding: 108px 0 72px; /* 88px fixed header + breathing room */
}

.test-hero-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
}

/* Headline */
.test-h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--light);
}

.test-h1-p2 {
    display: block;
    margin-top: 0.35em;
}

.test-subhead {
    font-size: 0.975rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 460px;
}

/* Email form */
.signup-form {
    margin-bottom: 20px;
}

.signup-form-row {
    display: flex;
    gap: 8px;
    max-width: 460px;
}

.signup-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 11px 16px;
    color: var(--light);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.signup-input::placeholder {
    color: var(--gray);
}

.signup-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.signup-btn {
    background: var(--light);
    color: #1A1A2E;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
}

.signup-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.signup-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.signup-error {
    color: #FF8080;
    font-size: 0.825rem;
    margin-top: 8px;
    min-height: 1.2em;
}

/* Trust list */
.trust-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    color: var(--gray);
}

.trust-check {
    width: 17px;
    height: 17px;
    background: var(--secondary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    flex-shrink: 0;
}

/* ================================================================
   APP PHONE MOCKUP
   ================================================================ */
.test-hero-visual {
    display: flex;
    justify-content: center;
}

.app-phone-mockup {
    width: 230px;
    flex-shrink: 0;
    animation: float 6s ease-in-out infinite;
}

.app-phone-frame {
    background: linear-gradient(160deg, #28283E 0%, #1A1A2E 100%);
    border-radius: 38px;
    padding: 9px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.11),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.app-phone-screen {
    background: linear-gradient(180deg, #1C1C2E 0%, #21213A 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

/* Status bar */
.app-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 6px;
}

.app-time {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--light);
}

.app-battery {
    width: 20px;
    height: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    padding: 1.5px;
    position: relative;
}

.app-battery::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 0 2px 2px 0;
}

.app-battery-inner {
    width: 68%;
    height: 100%;
    background: #4CD964;
    border-radius: 1.5px;
}

/* App content */
.app-content {
    padding: 4px 14px 10px;
    flex: 1;
}

.app-greeting {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 10px;
}

/* Progress ring */
.app-ring-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 8px;
}

.app-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.app-ring-pct {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--light);
}

.app-ring-goal {
    font-size: 0.52rem;
    color: var(--gray);
    white-space: nowrap;
    margin-top: 3px;
}

/* Activity stats */
.app-activity-row {
    text-align: center;
    margin-bottom: 10px;
}

.app-activity-type {
    font-size: 0.6rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.app-activity-mins {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

/* Notification card */
.app-notification {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.app-notif-icon {
    width: 20px;
    height: 20px;
    background: #4CD964;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    line-height: 1;
}

.app-notif-content {
    flex: 1;
}

.app-notif-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 2px;
}

.app-notif-desc {
    font-size: 0.58rem;
    color: var(--gray);
    line-height: 1.3;
}

/* Tab bar */
.app-tab-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 4px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.48rem;
    color: var(--gray);
    font-weight: 500;
}

.app-tab svg {
    width: 15px;
    height: 15px;
}

.app-tab.active {
    color: var(--primary);
}

/* ================================================================
   VALUE CARDS
   ================================================================ */
.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.value-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 18px;
}

.value-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 8px;
    line-height: 1.3;
}

.value-card p {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* ================================================================
   HOW IT WORKS (3-step inline list)
   ================================================================ */
.hiw-section {
    margin-bottom: 36px;
}

.hiw-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.hiw-steps {
    display: flex;
    flex-direction: column;
}

.hiw-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw-step:last-of-type,
.hiw-step:last-child {
    border-bottom: none;
}

.hiw-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--light);
}

.hiw-step-content strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 4px;
}

.hiw-step-content p {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0;
}

/* ================================================================
   DEVICE REQUIREMENT PILL
   ================================================================ */
.device-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.78rem;
    color: var(--gray);
}

.device-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: var(--gray);
}

/* ================================================================
   CONFIRMATION MODAL
   ================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #242438;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.modal-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 18px;
}

.modal-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.referral-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.referral-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--gray);
    font-size: 0.75rem;
    font-family: inherit;
    outline: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--light);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.modal-close {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s;
}

.modal-close:hover {
    transform: translateY(-2px);
}

/* ================================================================
   RESPONSIVE — TEST HERO
   ================================================================ */
@media (max-width: 968px) {
    .test-hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .test-hero-visual {
        order: 2; /* phone below text on mobile */
    }

    .test-subhead {
        max-width: 100%;
    }

    .signup-form-row {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .test-hero {
        padding: 96px 0 56px;
    }

    .signup-form-row {
        flex-direction: column;
    }

    .signup-btn {
        width: 100%;
        padding: 13px;
    }

    .value-cards {
        grid-template-columns: 1fr;
    }

    .modal-card {
        padding: 32px 20px;
    }

    .referral-row {
        flex-direction: column;
    }

    .referral-input {
        font-size: 0.7rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .phone-mockup {
        max-width: 280px;
    }
}

@media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary, .btn-secondary {
        text-align: center;
        justify-content: center;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .logo {
        font-size: 1rem;
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-links {
        flex-shrink: 0;
        gap: 16px;
    }

    .nav-links a {
        color: var(--light);
    }

    .nav-cta {
        display: none;
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
    }
}
