/* ===================================
   POUCHED WEB - MOBILE-FIRST STYLES
   Design System: Clean, Blue, Authentic
   =================================== */

/* ===================================
   CSS RESET & BASE
   =================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1a202c;
    background: #ffffff;
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

strong {
    font-weight: 600;
}

a {
    color: #007AFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 32px 0;
}

/* ===================================
   BUTTONS
   =================================== */

.button,
.cta-button,
.step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.button-primary,
.cta-button {
    background: #007AFF;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.button-primary:active,
.cta-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.button-secondary {
    background: #ffffff;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.button-large {
    padding: 20px 32px;
    font-size: 18px;
}

.button:disabled,
.button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.button-icon {
    margin-right: 8px;
    font-size: 20px;
}

.button-arrow {
    margin-left: 8px;
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-subtle {
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px;
}

/* ===================================
   SUCCESS PAGE
   =================================== */

.success-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #1a202c;
    margin-bottom: 12px;
}

.success-subtitle {
    font-size: 16px;
    color: #718096;
    text-align: center;
    max-width: 400px;
    margin-bottom: 24px;
}

.email-badge {
    background: #ffffff;
    border: 2px solid #007AFF;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    text-align: center;
}

.email-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.email-value {
    font-size: 16px;
    font-weight: 600;
    color: #007AFF;
}

.primary-cta-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
}

.email-instruction-badge {
    background: #007AFF;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.email-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.email-cta-description {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
}

.email-cta-note {
    font-size: 13px;
    color: #718096;
    font-style: italic;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    width: 100%;
    max-width: 500px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.or-divider span {
    padding: 0 16px;
    font-size: 14px;
    color: #718096;
    font-weight: 600;
}

.secondary-activation {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
    margin-bottom: 24px;
}

.activation-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.activation-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activation-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    background: #007AFF;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.step-button {
    width: 100%;
    background: #007AFF;
    color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.step-button:active {
    transform: scale(0.98);
}

.step-button.disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

.step-note {
    font-size: 13px;
    color: #718096;
    text-align: center;
    display: none;
}

.step-note.ready {
    color: #48bb78;
    display: block;
}

.step-note.error {
    color: #ed8936;
    display: block;
}

.support-text {
    font-size: 14px;
    color: #718096;
    text-align: center;
    max-width: 500px;
}

.support-link {
    color: #007AFF;
    font-weight: 600;
}

/* Success page is now styled - continues in next section */

/* ===================================
   LANDING HUB PAGE
   =================================== */

.hub-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
}

.hub-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.hub-logo {
    font-size: 48px;
    margin-bottom: 12px;
    border-radius: 22.37%;
}

.hub-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hub-subtitle {
    font-size: 16px;
    color: #718096;
}

.hub-funnels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 40px;
    width: 100%;
}

.funnel-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.funnel-card:hover {
    border-color: #007AFF;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    text-decoration: none;
}

.funnel-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.funnel-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.funnel-card-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
}

.hub-cta-section {
    background: #f7fafc;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.hub-cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ===================================
   PRESELL / QUIT PLAN PAGE
   =================================== */

.hero {
    padding: 24px 16px 40px;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.cta-nav {
    padding: 12px 20px;
    font-size: 14px;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.badge-icon {
    font-size: 16px;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.gradient-text {
    color: #007AFF;
}

.hero-subtitle {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: 32px;
}

.cta-primary {
    width: 100%;
    background: #007AFF;
    color: #ffffff;
    padding: 18px 24px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.cta-primary:active {
    transform: scale(0.98);
}

.cta-subtext {
    font-size: 14px;
    color: #718096;
    text-align: center;
    margin-top: 12px;
}

.check-icon {
    color: #48bb78;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-item {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #007AFF;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #718096;
}

/* ===================================
   QUIZ FUNNEL
   =================================== */

.quiz-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    z-index: 100;
}

.quiz-progress-bar {
    height: 100%;
    background: #007AFF;
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-container {
    min-height: 100vh;
    padding: 60px 16px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-question.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-header {
    margin-bottom: 32px;
}

.quiz-step {
    font-size: 14px;
    color: #007AFF;
    font-weight: 600;
    margin-bottom: 8px;
}

.quiz-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quiz-subtitle {
    font-size: 16px;
    color: #718096;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 20px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.quiz-option:active {
    transform: scale(0.98);
    border-color: #007AFF;
    background: #f7fafc;
}

.option-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-text strong {
    font-size: 17px;
    color: #1a202c;
    font-weight: 600;
}

.option-text span {
    font-size: 14px;
    color: #718096;
}

/* Quiz Results */
.quiz-results-container {
    min-height: 100vh;
    padding: 60px 16px 24px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.results-loading {
    padding: 60px 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #007AFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: #718096;
}

.results-content {
    display: none;
}

.results-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.results-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.results-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 32px;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.result-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.result-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.result-card-label {
    font-size: 13px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.result-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #007AFF;
}

.result-card-subtext {
    font-size: 14px;
    color: #718096;
    margin-top: 4px;
}

/* ===================================
   GUIDE / INFO PRODUCT PAGE
   =================================== */

.guide-container,
.info-container {
    padding: 24px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.guide-hero,
.info-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px 0;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.urgency-banner {
    background: #007AFF;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: inline-block;
}

.guide-title,
.info-hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.guide-subtitle,
.info-hero-subtitle {
    font-size: 16px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 16px;
}

.guide-social-proof,
.info-social-proof {
    font-size: 14px;
    color: #718096;
    margin-top: 16px;
}

.section-title,
.info-what-you-get h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.module-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.module-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.module-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.module-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.module-description {
    font-size: 15px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 16px;
}

.module-includes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.include-item {
    font-size: 14px;
    color: #4a5568;
}

/* Sticky CTA for Guide */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.sticky-cta .cta-button {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.cta-large {
    padding: 20px 32px;
    font-size: 18px;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: 32px 16px;
    background: #f7fafc;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-link {
    font-size: 14px;
    color: #718096;
}

.footer-text {
    font-size: 13px;
    color: #a0aec0;
}

/* ===================================
   RESPONSIVE - TABLET & DESKTOP
   =================================== */

@media (min-width: 768px) {
    h1 {
        font-size: 48px;
    }

    .hero-title {
        font-size: 48px;
    }

    .quiz-title {
        font-size: 36px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-funnels {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 24px;
    }
}

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

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.hidden {
    display: none;
}
