/* Importing Clean Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Shadcn UI Color System mapped with Yellow & Navy Brand Colors */
    --background: #ffffff;
    --foreground: #09090b;          /* zinc-950 */
    
    --card: #ffffff;
    --card-foreground: #09090b;
    
    --popover: #ffffff;
    --popover-foreground: #09090b;
    
    --primary: #002B49;            /* Navy brand color as primary */
    --primary-foreground: #fafafa;
    
    --secondary: #f4f4f5;          /* zinc-100 */
    --secondary-foreground: #18181b;
    
    --muted: #f4f4f5;
    --muted-foreground: #71717a;   /* zinc-500 */
    
    --accent: #FBDF00;             /* Yellow brand color as accent */
    --accent-foreground: #002B49;
    
    --destructive: #ef4444;        /* red-500 */
    --destructive-foreground: #fafafa;
    
    --border: #e4e4e7;             /* zinc-200 */
    --input: #e4e4e7;
    --ring: #18181b;               /* zinc-900 */
    
    --radius: 0.5rem;              /* 8px */
    
    /* Brand gold/yellow styling details for custom copy overrides */
    --brand-yellow: #8A7300;       /* Dark gold for text contrast */
    --brand-yellow-hover: #E3C900;
    --brand-yellow-light: #FFFEEA;
    --brand-orange: #f97316;
    --brand-orange-light: #ffedd5;
    --danger-red: #ef4444;
    --danger-red-light: #fee2e2;
    --success-green: #22c55e;
    --success-green-light: #dcfce7;

    --brand-blue-dark: #002B49;
    --brand-blue-mid: #0c3e66;
    --brand-blue-light: #F0F7FC;
    --brand-yellow-btn: #FBDF00;
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #e4e4e7;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--muted-foreground);
}

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

/* Base Component: Shadcn Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: var(--foreground);
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Brand Custom Hero Badge */
.hero .badge {
    background-color: var(--brand-yellow-light);
    border-color: rgba(138, 115, 0, 0.15);
    color: var(--brand-yellow);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
}

/* Base Component: Shadcn Card */
.card {
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    border-color: #cbd5e1; /* zinc-300 */
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.03);
}

/* Base Component: Shadcn Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    outline: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover {
    background-color: #0c3e66;
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #e4e4e7;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--brand-yellow-hover);
}

/* Navigation CTA style button */
.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius) !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid #000000 !important;
    height: 2.25rem;
    padding: 0 1rem !important;
    font-size: 0.8rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background-color: #27272a !important;
    border-color: #27272a !important;
    color: #ffffff !important;
    transform: translateY(0);
}

/* Sticky Navbar (Shadcn Header) */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 200;
    /* NOTE: No backdrop-filter here — it creates a stacking context
       that would clip absolutely-positioned dropdowns. */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-logo span {
    color: var(--brand-yellow);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-links a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    padding: 0.25rem 0;
}

.navbar-links a:hover {
    color: var(--foreground);
}

/* Hamburger mobile menu button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--foreground);
    border-radius: 1px;
    transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background-color: var(--background);
    padding: 6.5rem 0 4.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--foreground);
}

.hero h1 span.highlight {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    max-width: 720px;
    margin: 0 auto 2.25rem auto;
    line-height: 1.55;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* Privacy warning alert banner */
.redact-alert {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: var(--radius);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
}

.redact-alert svg {
    flex-shrink: 0;
    color: var(--muted-foreground);
}

/* Dramatic metrics panel */
.dramatic-banner {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    color: var(--foreground);
}

.dramatic-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    text-align: center;
    color: var(--foreground);
}

.dramatic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dramatic-item {
    text-align: center;
    border-right: 1px solid var(--border);
    padding: 0.25rem;
}

.dramatic-item:last-child {
    border-right: none;
}

.dramatic-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dramatic-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Stats metrics grids */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    position: relative;
    padding: 1.25rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius) 0 0 var(--radius);
}

.danger-stat::before {
    background-color: var(--destructive);
}

.win-stat::before {
    background-color: var(--accent);
}

.warning-stat::before {
    background-color: var(--brand-orange);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

/* Sections Structure */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    max-width: 650px;
    margin: 0 auto;
}

/* Stepper Stepper Horizontal Timeline Nodes */
.timeline-wrapper {
    position: relative;
    width: 100%;
}

.timeline-nav {
    position: relative;
    width: 90%;
    margin: 0 auto 3rem auto;
    padding: 1rem 0;
}

.timeline-nav-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-nav-progress {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    width: 100%;
}

.timeline-step-node {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: var(--transition);
    width: 80px;
}

.step-bullet {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--background);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.step-date {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-top: 0.75rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.step-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-top: 0.15rem;
    white-space: nowrap;
}

.timeline-step-node.completed .step-bullet {
    background-color: var(--secondary);
    border-color: var(--border);
    color: var(--foreground);
}

.timeline-step-node.active .step-bullet {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary);
}

.timeline-step-node.danger.completed .step-bullet {
    border-color: var(--destructive);
    color: var(--destructive);
}

.timeline-step-node.win.completed .step-bullet {
    border-color: var(--success-green);
    color: var(--success-green);
}

.timeline-step-node.active .step-date,
.timeline-step-node.active .step-title {
    color: var(--foreground);
    font-weight: 700;
}

/* Timeline details */
.timeline-detail-display {
    position: relative;
    width: 100%;
}

.timeline-detail-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
    display: none;
    animation: timelineCardFadeIn 0.3s ease;
}

.timeline-detail-card.active {
    display: block;
}

.timeline-detail-card.danger {
    border-left: 4px solid var(--destructive);
}

.timeline-detail-card.win {
    border-left: 4px solid var(--success-green);
}

.timeline-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.875rem;
    margin-bottom: 1rem;
}

.timeline-detail-header h3 {
    font-size: 1.25rem;
    color: var(--foreground);
}

.detail-date-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-yellow);
    background-color: var(--brand-yellow-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(138, 115, 0, 0.1);
}

.detail-description {
    font-size: 0.95rem;
    color: var(--foreground);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

/* Clinical Evidence Side-by-Side Review */
.compare-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.compare-card {
    border-radius: var(--radius);
    padding: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.compare-card.rejection-rationale {
    border-left: 4px solid var(--destructive);
}

.compare-card.clinical-vitals {
    border-left: 4px solid var(--accent);
}

.compare-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.compare-list {
    list-style: none;
    margin-top: 1rem;
}

.compare-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

.compare-list li:last-child {
    border-bottom: none;
}

.metric-label strong {
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: block;
}

.metric-val {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.rejection-rationale .metric-val {
    color: var(--destructive);
    background-color: var(--danger-red-light);
    border-color: rgba(239, 68, 68, 0.15);
}

.clinical-vitals .metric-val {
    color: var(--foreground);
    background-color: var(--brand-yellow-light);
    border-color: rgba(138, 115, 0, 0.15);
}

/* Tweets Masonry Grid UI */
.testimonials-masonry {
    column-count: 3;
    column-gap: 1.25rem;
    width: 100%;
}

.testimonial-tweet {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    break-inside: avoid;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03);
    transition: var(--transition);
}

.testimonial-tweet:hover {
    border-color: #a1a1aa; /* zinc-400 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.tweet-main {
    display: flex;
    gap: 0.75rem;
}

.tweet-avatar {
    font-size: 1.25rem;
    background-color: var(--secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tweet-content {
    flex: 1;
}

.tweet-user {
    font-size: 0.8rem;
    color: var(--foreground);
}

.tweet-user strong {
    font-weight: 700;
}

.tweet-user .handle {
    color: var(--muted-foreground);
    font-weight: 500;
    margin-left: 0.15rem;
}

.tweet-text {
    font-size: 0.8rem;
    color: #27272a; /* zinc-800 */
    margin-top: 0.25rem;
    line-height: 1.5;
    word-break: break-word;
}

.tweet-date {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    margin-top: 0.6rem;
    display: block;
}

.testimonials-source {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Superhuman/Linear Style Email Archives Client */
.inbox-container {
    display: flex;
    gap: 1.25rem;
    height: 1000px;
    margin-top: 1.5rem;
}

.inbox-sidebar {
    width: 30%;
    display: flex;
    flex-direction: column;
    background-color: #fafafa; /* zinc-50 style */
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.inbox-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--foreground);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background);
}

.inbox-list {
    flex: 1;
    overflow-y: auto;
}

.inbox-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background-color: #fafafa;
    transition: var(--transition);
}

.inbox-item:hover {
    background-color: #f4f4f5;
}

.inbox-item.active {
    background-color: var(--background);
    border-left: 3px solid var(--primary);
}

.inbox-item-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
}

.inbox-sender {
    font-weight: 700;
    color: var(--foreground);
}

.inbox-date {
    color: var(--muted-foreground);
}

.inbox-subject {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--foreground);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-snippet {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reading-pane {
    width: 70%;
    background-color: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.reading-thread {
    display: none;
}

.reading-thread.active {
    display: block;
}

.reading-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.875rem;
    margin-bottom: 1.5rem;
}

.reading-thread-header h3 {
    font-size: 1.15rem;
}

.thread-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    text-transform: uppercase;
}

.thread-badge.success {
    background-color: var(--success-green-light);
    color: var(--success-green);
    border-color: rgba(34, 197, 94, 0.15);
}

.thread-badge.warning {
    background-color: var(--brand-orange-light);
    color: var(--brand-orange);
    border-color: rgba(249, 115, 22, 0.15);
}

.thread-badge.danger {
    background-color: var(--danger-red-light);
    color: var(--danger-red);
    border-color: rgba(239, 68, 68, 0.15);
}

/* Email mock element layout */
.email-mock-client {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.email-client-header {
    background-color: #fafafa;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.email-client-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffffff;
    flex-shrink: 0;
}

.email-client-avatar.sender-care {
    background-color: var(--primary);
}

.email-client-avatar.sender-claimant {
    background-color: var(--muted-foreground);
}

.email-client-avatar.sender-sales {
    background-color: #ca8a04; /* yellow-600 */
}

.email-client-avatar.sender-ombudsman {
    background-color: var(--success-green);
}

.email-client-meta {
    flex: 1;
    min-width: 0;
}

.email-client-sender {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--foreground);
}

.email-client-sender .sender-email {
    font-weight: 400;
    color: var(--muted-foreground);
    margin-left: 0.25rem;
    font-family: monospace;
}

.email-client-recipient {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-client-time {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.email-client-body {
    padding: 1.25rem;
    font-size: 0.825rem;
    color: #18181b; /* zinc-900 */
    line-height: 1.6;
}

.email-highlight {
    background-color: var(--brand-yellow-light);
    border-left: 2px solid var(--accent);
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0 4px 4px 0;
    display: block;
}

.inbox-alert-callout {
    border-radius: var(--radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
    background-color: var(--danger-red-light);
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.85rem;
}

.inbox-alert-callout .callout-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.inbox-alert-callout .callout-content {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Redacted Table markup inside email body */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    margin: 1.25rem 0;
}

.premium-table th, 
.premium-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
}

.premium-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--foreground);
    text-align: left;
}

.premium-table tr.total-row {
    font-weight: 700;
    background-color: #fafafa;
}

.premium-table tr.payable-row {
    font-weight: 700;
    background-color: var(--brand-yellow-light);
}

/* Admin discrepancies grid layout */
.discrepancies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.discrepancies-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
}

.discrepancies-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.discrepancies-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.discrepancies-card p {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.evidence-quote {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.75rem;
    background-color: #fafafa;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 6px;
    color: #4f4f4f;
    white-space: pre-line;
    line-height: 1.45;
}

/* Stepper vertical accordions (Toolkit) */
.guide-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.guide-step {
    border: 1px solid var(--border);
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.guide-step.active {
    border-color: #cbd5e1;
}

.guide-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.guide-header:hover {
    background-color: #fafafa;
}

.guide-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--foreground);
}

.guide-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.guide-step.win .guide-num {
    background-color: var(--success-green-light);
    color: var(--success-green);
}

.guide-arrow {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    transition: transform 0.2s ease;
}

.guide-step.active .guide-arrow {
    transform: rotate(180deg);
}

.guide-body {
    padding: 0 1.5rem 1.5rem 3.5rem;
    display: none;
}

.guide-step.active .guide-body {
    display: block;
}

.guide-body p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.guide-list {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.guide-list li {
    margin-bottom: 0.25rem;
}

/* Key Lessons grid markup */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lesson-card {
    padding: 1.75rem;
}

.lesson-number {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.lesson-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.lesson-content p {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Document vault layout grids */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
}

.doc-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
}

.doc-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.doc-card h4 {
    font-size: 0.975rem;
    margin-bottom: 0.35rem;
}

.doc-card p {
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

/* Document Vault Previews (Modal overlay system) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--card);
    margin: 5% auto;
    width: 90%;
    max-width: 700px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    position: relative;
    animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-header {
    background-color: var(--background);
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--foreground);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.25rem;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--foreground);
}

.document-pre-viewer {
    padding: 1.5rem 1.75rem;
    background-color: #fafafa;
}

.document-pre-viewer code {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.75rem;
    color: #27272a;
    white-space: pre-wrap;
    line-height: 1.55;
    display: block;
}

@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}



/* Footer elements */
footer {
    background-color: var(--background);
    color: var(--muted-foreground);
    padding: 3rem 0;
    font-size: 0.75rem;
    line-height: 1.5;
    border-top: 1px solid var(--border);
}

footer strong {
    color: var(--foreground);
}

footer p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* --- Responsive Media Adjusters --- */

@media (max-width: 1100px) {
    .stats-grid,
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .hamburger-btn {
        display: flex;
    }

    .navbar-links {
        position: fixed;
        top: 57px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--background);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.25rem;
        padding: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        border-bottom: 1px solid var(--border);
        z-index: 95;
    }

    .navbar-links.open {
        height: auto;
        max-height: calc(100vh - 57px);
        overflow-y: auto;
        padding: 2rem 0;
    }

    .inbox-container {
        flex-direction: column;
        height: auto;
    }

    .inbox-sidebar {
        width: 100%;
        height: auto;
    }

    .reading-pane {
        width: 100%;
        height: auto;
        min-height: 500px;
    }

    .compare-container,
    .discrepancies-grid,
    .vault-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonials-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 0 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .dramatic-banner {
        padding: 1.5rem 1rem;
    }

    .dramatic-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .dramatic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .dramatic-item {
        border-right: none;
    }

    .dramatic-number {
        font-size: 1.75rem;
    }

    .dramatic-label {
        font-size: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    /* Horizontal Timeline mobile scrolling support */
    .timeline-nav {
        width: 100%;
        overflow-x: auto;
        padding: 1rem 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .timeline-steps-container {
        width: 750px;
    }

    .timeline-nav-track {
        width: 750px;
    }

    .timeline-nav-progress {
        max-width: 750px;
    }

    .timeline-step-node {
        width: 70px;
    }

    .step-bullet {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .step-date {
        font-size: 0.6rem;
    }

    .step-title {
        font-size: 0.6rem;
    }

    .timeline-detail-card {
        padding: 1.25rem;
    }

    .timeline-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .timeline-detail-header h3 {
        font-size: 1.1rem;
    }

    .compare-card,
    .discrepancies-card,
    .lesson-card {
        padding: 1.25rem;
    }

    .compare-list li {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }

    .testimonials-masonry {
        column-count: 1;
    }

    .guide-header {
        padding: 0.85rem 1.25rem;
    }

    .guide-title {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .guide-num {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .guide-body {
        padding: 0 1.25rem 1.25rem 2.5rem;
    }

    .guide-body p {
        font-size: 0.8rem;
    }

    .guide-list {
        font-size: 0.75rem;
    }

    .reading-pane {
        padding: 1rem;
    }

    .reading-thread-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .reading-thread-header h3 {
        font-size: 1rem;
    }

    .email-client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.75rem 1rem;
    }

    .email-client-avatar {
        display: none;
    }

    .email-client-body {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dramatic-grid {
        grid-template-columns: 1fr;
    }

    .metrics-subgrid-2x2 {
        grid-template-columns: 1fr;
    }
}

/* Case Summary Card (At a Glance) Styling */
.case-summary-card {
    max-width: 650px;
    margin: 2.5rem auto 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.case-summary-header {
    background-color: #fafafa;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.case-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.case-summary-table tr {
    border-bottom: 1px solid var(--border);
}

.case-summary-table tr:last-child {
    border-bottom: none;
}

.case-summary-table td {
    padding: 0.65rem 1.25rem;
    text-align: left;
}

.case-summary-table td.label-cell {
    font-weight: 600;
    color: var(--muted-foreground);
    width: 35%;
}

.case-summary-table td.value-cell {
    font-weight: 500;
    color: var(--foreground);
}

/* Denial vs Outcome Table Styling */
.denial-outcome-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.denial-outcome-table th,
.denial-outcome-table td {
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    vertical-align: top;
    text-align: left;
}

.denial-outcome-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--foreground);
}

.denial-outcome-table td.denial-cell {
    color: var(--destructive);
    background-color: rgba(239, 68, 68, 0.01);
    font-weight: 500;
    width: 50%;
}

.denial-outcome-table td.outcome-cell {
    color: var(--foreground);
    background-color: rgba(34, 197, 94, 0.01);
    font-weight: 500;
    width: 50%;
}

/* Floating Buy Me a Coffee button styles */
.floating-coffee-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.65rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--foreground);
}

.floating-coffee-btn:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1; /* zinc-300 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.05);
    background-color: var(--secondary);
}

.floating-coffee-btn:active {
    transform: translateY(0);
}

.floating-coffee-btn .coffee-emoji {
    font-size: 1.15rem;
    display: inline-block;
    animation: coffeeBounce 3s ease infinite;
}

@keyframes coffeeBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

@media (max-width: 768px) {
    .floating-coffee-btn {
        bottom: 1.25rem;
        left: 1.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* --- Case Summary Card and Case Metrics Side-by-Side --- */
.summary-metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.summary-metrics-grid .case-summary-card {
    max-width: none;
    margin: 0;
    height: 100%;
}

.case-metrics-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-metrics-header {
    background-color: #fafafa;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.case-metrics-body {
    padding: 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.metrics-subgrid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.metric-card-mini {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.metric-mini-num {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.25;
}

.metric-mini-label {
    font-size: 0.65rem;
    color: var(--muted-foreground);
    font-weight: 500;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (min-width: 992px) {
    .summary-metrics-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}



/* =========================================
   New Satire Sections: Mobile Responsiveness
   ========================================= */

@media (max-width: 640px) {
    /* Denial Logic Museum: 2x2 → 1-col stack on mobile */
    #denial-logic-museum .container > div[style*="grid-template-columns: repeat(2, 1fr)"],
    #sudden-reconsideration div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Things Apparently Normal: auto-fit already stacks naturally */

    /* Corporate Translation Guide: table rows become card-like */
    #corporate-translation table thead {
        display: none;
    }
    #corporate-translation table tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 6px;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }
    #corporate-translation table td {
        display: block;
        border: none !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.82rem;
    }
    #corporate-translation table td:first-child {
        font-weight: 600;
        color: var(--foreground);
        border-bottom: 1px dashed var(--border) !important;
    }
}
