/* ============================================
   AskManwe — Global Styles
   Clean, editorial, typography-first
   ============================================ */

:root {
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-tertiary: #888;
    --text-body: #444;
    --bg-primary: #fff;
    --bg-secondary: #fafafa;
    --bg-card: #fff;
    --border: #e8e8ec;
    --border-light: #f0f0f3;
    --accent: #1a1a2e;
    --accent-hover: #2d2d4e;
    --link: #4636FC;
    --confidence-high: #22C55E;
    --confidence-mid: #F59E0B;
    --confidence-low: #EF4444;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
    --max-width-page: 1120px;
    --max-width-report: 720px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   Site Header
   ============================================ */

.site-header {
    width: 100%;
    max-width: var(--max-width-page);
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.site-header-left:hover { text-decoration: none; }

.site-header-logo {
    width: 28px;
    height: 28px;
}

.site-header-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

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

.site-header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.site-header-nav a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* ============================================
   Hero (Landing Page)
   ============================================ */

.hero {
    width: 100%;
    max-width: var(--max-width-page);
    margin: 0 auto;
    padding: 64px 32px 48px;
    text-align: center;
}

.hero-compact {
    padding: 56px 32px 32px;
}

.hero-compact h1 {
    margin-bottom: 14px;
}

.hero-compact p {
    margin-bottom: 0;
}

.hero-compact .hero-search {
    margin-top: 28px;
}

.hero-note {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Hero Search Bar */
.hero-search {
    max-width: 560px;
    margin: 36px auto 0;
    position: relative;
}

.hero-input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    font-size: 16px;
    font-family: var(--font-sans);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-input::placeholder {
    color: var(--text-tertiary);
}

.hero-input:focus {
    border-color: #ccc;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.hero-search {
    position: relative;
}

.hero-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--text-primary);
    color: var(--bg-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.hero-btn.visible {
    display: flex;
}

.hero-btn:hover {
    background: var(--accent-hover);
}

/* How It Works */
.how-it-works {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px 48px;
}

.how-steps {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.how-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.how-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.how-step-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   Report List (compact)
   ============================================ */

.report-list {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.report-list-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.report-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.1s ease;
}

.report-row:first-of-type {
    border-top: 1px solid var(--border-light);
}

.report-row:hover {
    text-decoration: none;
    background: var(--bg-secondary);
    margin: 0 -12px;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    border-color: transparent;
}

.report-row-main {
    flex: 1;
    min-width: 0;
}

.report-row-question {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.report-row-preview {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-row-side {
    text-align: right;
    flex-shrink: 0;
}

.report-row-confidence {
    display: block;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.report-row-meta {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
    white-space: nowrap;
}

/* Sticky footer */
.page-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-home .site-footer {
    margin-top: auto;
}

/* ============================================
   Report Page
   ============================================ */

.report-container {
    max-width: var(--max-width-report);
    margin: 0 auto;
    padding: 0 32px 80px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.report-header-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.report-header-meta {
    font-size: 11px;
    color: var(--text-secondary);
}

.report-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* Verdict / Summary */
.verdict {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
}

.verdict p {
    font-size: 15px;
    font-weight: 450;
    line-height: 1.75;
}

.verdict .meta {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Section labels */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

section {
    margin-bottom: 36px;
}

/* Predictions */
.prediction-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.prediction-row:last-child {
    border-bottom: none;
}

.pred-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.pred-statement {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.pred-confidence {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.confidence-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin-top: 8px;
}

.confidence-fill {
    height: 4px;
    border-radius: 2px;
}

/* Lists (Action Plan, Evidence, Risks) */
section ul {
    padding-left: 20px;
}

section ul li {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-body);
    line-height: 1.65;
}

section ol {
    padding-left: 20px;
}

section ol li {
    font-size: 13px;
    margin-bottom: 14px;
    color: var(--text-primary);
    line-height: 1.65;
}

/* Panel */
section ul li strong {
    color: var(--text-primary);
}

/* Debate Rounds — Collapsible */
.debate-round {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.debate-round summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.debate-round summary::-webkit-details-marker { display: none; }

.debate-round summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--text-tertiary);
    border-bottom: 1.5px solid var(--text-tertiary);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.debate-round[open] summary::after {
    transform: rotate(45deg);
}

.debate-round-body {
    padding: 0 16px 16px;
}

.debate-round-summary {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.debate-round blockquote {
    border-left: 2px solid var(--border);
    padding: 10px 14px;
    margin: 8px 0;
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.65;
}

.debate-round blockquote strong {
    color: var(--text-primary);
}

.action-tag {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

/* Mid-page CTA */
.report-cta {
    padding: 28px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 36px;
    text-align: center;
}

.report-cta-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.report-cta-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.report-cta .btn {
    font-size: 14px;
    padding: 10px 28px;
}

/* Event Banners (Surprise & Planned Events) */
.event-banner {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-body);
}

.event-banner .event-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-minor { background: #EFF6FF; }
.event-minor .event-label { color: #3B82F6; }

.event-moderate { background: #FFFBEB; }
.event-moderate .event-label { color: #D97706; }

.event-major { background: #FEF2F2; }
.event-major .event-label { color: #DC2626; }

/* Sources */
.sources-list {
    padding-left: 20px;
}

.sources-list li {
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text-body);
}

.sources-list li a {
    color: var(--text-body);
}

.sources-list li a:hover {
    color: var(--link);
}

/* ============================================
   Report Footer
   ============================================ */

.report-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.report-footer-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.report-footer-tagline {
    font-size: 12px;
    color: var(--text-body);
    margin-bottom: 16px;
}

.report-footer-stats {
    margin-top: 16px;
    font-size: 10px;
    color: var(--text-tertiary);
}

/* ============================================
   CTA Button
   ============================================ */

.btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1.5px solid var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 9px 22px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* ============================================
   Submit Page
   ============================================ */

.submit-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 64px 32px 80px;
}

.submit-container h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.submit-container .subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Tier Selector */
.tier-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tier-tab {
    flex: 1;
    padding: 14px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    transition: border-color 0.15s ease;
    margin-bottom: -1px;
}

.tier-tab:hover {
    border-bottom-color: var(--border);
}

.tier-tab.active {
    border-bottom-color: var(--text-primary);
}

.tier-tab-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.tier-tab-price {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Tier Panels */
.tier-panel {
    display: none;
}

.tier-panel.active {
    display: block;
}

.tier-detail {
    margin-bottom: 28px;
}

.tier-detail p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 8px;
}

.tier-note {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    margin-top: 12px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Private Tier Teaser */
.tier-private-teaser {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.tier-private-teaser h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.tier-private-teaser > p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 16px;
}

.tier-private-teaser ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.tier-private-teaser ul li {
    font-size: 13px;
    color: var(--text-body);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.tier-private-teaser ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.waitlist-row {
    display: flex;
    gap: 8px;
}

.waitlist-row input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.waitlist-row input[type="email"]:focus {
    outline: none;
    border-color: var(--text-primary);
}

.waitlist-row .btn {
    white-space: nowrap;
    cursor: pointer;
    padding: 10px 20px;
    font-family: var(--font-sans);
}

.waitlist-form .form-group label {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group textarea,
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: border-color 0.15s ease;
    resize: vertical;
}

.form-group textarea:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group textarea {
    min-height: 100px;
}

.form-submit {
    margin-top: 8px;
}

.form-submit .btn {
    width: 100%;
    text-align: center;
    padding: 12px 22px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-sans);
}

.form-submit .btn:hover {
    background: var(--accent-hover);
}

.form-status-success {
    margin-top: 16px;
    font-size: 14px;
    color: var(--confidence-high);
    font-weight: 500;
}

.form-status-error {
    margin-top: 16px;
    font-size: 14px;
    color: var(--confidence-low);
    font-weight: 500;
}

/* ============================================
   Site Footer
   ============================================ */

.site-footer {
    width: 100%;
    max-width: var(--max-width-page);
    margin: 0 auto;
    padding: 24px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

.site-footer a {
    color: var(--text-secondary);
}

.site-footer a:hover {
    color: var(--text-primary);
}

.site-footer .footer-links {
    display: flex;
    gap: 20px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero { padding: 48px 20px 32px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }

    .how-it-works { padding: 0 20px 36px; }
    .how-steps { flex-direction: column; gap: 12px; }

    .report-list { padding: 0 20px 64px; }
    .report-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .report-row-side { text-align: left; display: flex; align-items: center; gap: 12px; }
    .report-row-preview { white-space: normal; }

    .report-container { padding: 0 20px 64px; }
    .report-title { font-size: 22px; }

    .site-header { padding: 16px 20px; }
    .site-footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; }

    .submit-container { padding: 40px 20px 64px; }

    .hero-input { padding: 14px 20px; font-size: 15px; }
    .waitlist-row { flex-direction: column; }
}

/* ============================================
   Print
   ============================================ */

@media print {
    body { padding: 24px; }
    .site-header, .site-footer { display: none; }
    .btn { border-color: var(--text-primary); color: var(--text-primary); }
    section { page-break-inside: avoid; }
    .verdict { page-break-after: avoid; }
    .debate-round { break-inside: avoid; }
}
