/* Path2 Bento Box Layout Style V2 - Material 3 Expressive */

:root {
    /* Colors */
    --color-primary: #0A192F;
    /* Navy */
    --color-primary-dark: #001025;
    /* Darker Navy */
    --color-primary-mid: #112240;
    --color-accent: #0490de;
    /* Bright Blue */
    --color-accent-hover: #037dc3;
    --color-secondary-accent: #ccff00;
    /* Lime */

    /* M3 Tonal Surfaces */
    --color-bg: #F5F9FC;
    /* Surface Container Lowest - Tinted White */
    --color-surface: #FFFFFF;
    /* Surface - Pure White for cards */
    --color-surface-container-high: #E8F1F8;
    /* Highlighted areas */
    --color-surface-warm: #F5F3E8;

    --color-text: #0A192F;
    --color-text-secondary: #475569;
    /* Slate 600 - Better contrast */
    --color-text-inverse: #FFFFFF;
    --color-error: #ef4444;
    --color-success: #22c55e;

    /* Typography */
    --font-display: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;

    /* BorderRadius (M3) */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    /* Extra Large for M3 Expressive */

    /* Shadows & Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

/* Material Symbols */
.material-symbols-rounded {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
    /* Optical size adjusted */
    font-size: 1.25em;
    /* Scale relative to context */
    vertical-align: middle;
}

.icon-right {
    margin-left: 4px;
    font-size: 1.25rem;
}

.footer-icon-right {
    margin-left: 8px;
    font-size: 1.1rem;
    vertical-align: -3px;
}


/* Typography - M3 Expressive Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    /* Tighter line height for headings */
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 4.5rem;
    /* Display Large */
    font-weight: 800;
    letter-spacing: -0.03em;
    /* Tighter tracking for display text */
    line-height: 1.05;
}

h2 {
    font-size: 3rem;
    /* Display Medium */
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.75rem;
    /* Headline Small */
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    /* Slightly larger body */
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    /* Bolder */
    letter-spacing: 0.08em;
    /* Wide tracking */
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Utilities */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 36px;
    /* Larger touch target */
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    /* M3 Emphasized Decelerate */
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary-accent);
    /* Lime */
    color: var(--color-primary);
    /* Navy text */
    /* No shadow by default for cleaner look, shadow on hover */
}

.btn-primary:hover {
    background-color: #d9ff33;
    /* Lighter lime */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    /* Thicker border */
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(10, 25, 47, 0.04);
}

.btn-nav {
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* Header */
.header {
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(245, 249, 252, 0.85);
    /* Matches --color-bg with alpha */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Bento Grid System */
.bento-section {
    padding: 100px 0;
    /* Increased spacing between sections */
}

/* ─── M3 Linear Progress Divider (Indeterminate Wavy) ─── */
.m3-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    /* More space */
    width: 100%;
    overflow: visible;
    /* Changed from hidden to prevent arrow clipping */
}

.m3-section-divider svg {
    width: 100%;
    max-width: 600px;
    height: 60px;
    /* Increased to 60 as requested */
}

/* Track Line (Background) - Light Blue */
.m3-track {
    fill: none;
    stroke: var(--color-secondary-accent);
    /* Light Blue/Lime -> now Path2 Light Blue? Let's check var */
    /* Actually user asked for Navy and Light Blue.
       Let's assume:
       Track = Navy (Background/Base) 
       Indicator = Light Blue (Active/Highlight)
       OR
       Track = Light Blue (faint)
       Indicator = Navy (strong)
       
       Material 3 spec usually has Track as the lighter tone and Indicator as the stronger tone.
       Path2:
       Primary = Navy (#0a192f)
       Secondary Accent = Lime (#d4ff00) -> wait, user said "Light Blue of Path2".
       Let's use the text-highlight-bg color for light blue or define a new one if needed.
       Existing CSS has: --color-primary: #0a192f (Navy).
       Let's use a light blue for track and Navy for indicator?
       "deixa o azul marinho e o azul claro da path2"
       
       Let's try:
       Track = Light Blue/Grayish (rgba of navy?)
       Indicator = Navy
    */
    stroke: rgba(10, 25, 47, 0.1);
    /* Faint Navy */
    stroke-width: 6;
    stroke-linecap: round;
}

/* Indicator Line (Foreground) - Navy */
.m3-indicator {
    fill: none;
    stroke: var(--color-primary);
    /* Navy */
    stroke-width: 6;
    stroke-linecap: round;
    /* Scroll driven dashoffset */
}

/* Arrow Head */
.m3-arrow {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Navy */
    transition: opacity 0.2s ease;
    opacity: 0;
    /* Hidden by default */
}

/* Active State: Scroll Driven (JS Controlled) */

.m3-section-divider .m3-indicator {
    will-change: stroke-dashoffset;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.bento-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    /* Removed border for cleaner look */
    box-shadow: var(--shadow-sm);
    /* Using shadow for separation instead of border */
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-dark {
    background-color: var(--color-primary-dark);
    color: white;
    box-shadow: none;
    /* Dark cards dont need shadow on dark bg, but here bg is light so maybe? */
}

.card-dark p {
    color: rgba(255, 255, 255, 0.7);
}

/* Specific Grid Placements */

/* Hero Section */
.hero-content-card {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Align left for editorial feel */
    text-align: left;
    min-height: 520px;
    border: none;
    /* Ensure no border */
    box-shadow: none;
    /* Flat on layout, clean */
    background-color: var(--color-surface);
}

.hero-visual-card {
    grid-column: span 6;
    background-color: var(--color-primary-mid);
    position: relative;
    min-height: 520px;
    padding: 0;
    /* Remove padding to let image fill */
    /* background-image removed */
    border-radius: var(--radius-lg);
    /* Consistent rounding */
    /* Remove any border here */
    border: none;
    box-shadow: var(--shadow-md);
}

/* Methodology Section */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.journey-card {
    padding: 48px 36px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered alignment */
    text-align: center;
    /* Centered text */
    transition: all 0.3s ease;
    min-height: 480px;
    box-shadow: var(--shadow-sm);
    border: none;
    /* No borders for colored cards */
    color: white;
    /* Default text color for these colored cards */
}

.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Step 1: Deep Understanding (Navy) */
.card-step-deep {
    background: var(--color-primary);
    /* Flat color for better contrast */
}

.card-step-deep .journey-desc {
    color: rgba(255, 255, 255, 0.9);
}

.card-step-deep .journey-title,
.card-step-deep .step-number,
.card-step-deep .journey-icon {
    color: white;
}

/* Step 2: Clarity/Plan (Blue) */
.card-step-clarity {
    background: var(--color-accent);
    /* Flat Bright Blue */
    color: white;
}

.card-step-clarity .journey-desc {
    color: rgba(255, 255, 255, 0.95);
}

.card-step-clarity .journey-title,
.card-step-clarity .step-number,
.card-step-clarity .journey-icon {
    color: white;
}

/* Step 3: Trust/Journey (Lime) */
.card-step-trust {
    background-color: var(--color-secondary-accent);
    /* Lime */
    color: var(--color-primary);
    /* Navy text */
}

.card-step-trust .step-number,
.card-step-trust .journey-icon,
.card-step-trust .journey-title,
.card-step-trust .journey-desc {
    color: var(--color-primary);
}

/* Icons & Typography within Journey */
.journey-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

.step-number {
    font-size: 4rem;
    /* Giant number for impact */
    font-weight: 800;
    margin-bottom: 16px;
    display: block;
    font-family: var(--font-heading);
    opacity: 0.5;
    line-height: 1;
}

.journey-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    min-height: auto;
    /* Remove min-height constraint */
}

.journey-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Engineering Section */
.engineering-section {
    background-color: var(--color-bg);
    /* Match body bg */
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.engineering-grid {
    gap: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.eng-card {
    grid-column: span 4;
    background-color: var(--color-surface);
    border: none;
    border-top: 4px solid var(--color-accent);
    /* Default accent */
    box-shadow: var(--shadow-sm);
    text-align: center;
    /* Center align for symmetry */
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eng-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Varying colors to match the Journey/Brand palette */
.eng-card:nth-of-type(1) {
    border-color: var(--color-primary);
    /* Navy */
}

.eng-card:nth-of-type(1) .eng-icon {
    color: var(--color-primary);
}

.eng-card:nth-of-type(2) {
    border-color: var(--color-accent);
    /* Blue */
}

.eng-card:nth-of-type(2) .eng-icon {
    color: var(--color-accent);
}

.eng-card:nth-of-type(3) {
    border-color: var(--color-secondary-accent);
    /* Lime */
}

.eng-card:nth-of-type(3) .eng-icon {
    color: #a3cc00;
    /* Darker Lime for icon visibility on white */
}


.eng-icon {
    display: inline-flex;
    padding: 0;
    background: transparent;
    /* Remove container bg */
    border-radius: 0;
    margin-bottom: 20px;
}

.eng-icon .material-symbols-rounded {
    font-size: 3rem;
    /* Larger icon */
    font-variation-settings: 'wght' 400;
}

.text-highlight-bg {
    background-color: rgba(204, 255, 0, 0.6);
    /* Darker opacity for better contrast */
    padding: 0 4px;
    margin: 0 -2px;
    border-radius: 4px;
    font-weight: 600;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    /* Increased gap */
    align-items: stretch;
    /* Ensure cards match height */
}

.pricing-card {
    background: var(--color-surface);
    padding: 48px 32px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border base */
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
    background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
    border: 3px solid var(--color-accent);
    /* Bolder border */
    transform: scale(1.02);
    /* Slight scale up default */
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
    /* Maintain scale on hover */
}

/* Glow Effect for Featured Card */
.glow-active {
    box-shadow: 0 0 30px rgba(4, 144, 222, 0.4), var(--shadow-lg) !important;
    border-color: var(--color-accent) !important;
    transition: box-shadow 0.6s ease;
}

.badge-accent {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    background-color: var(--color-secondary-accent);
    padding: 8px 20px;
    border-radius: 999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    min-height: 48px;
    /* Force alignment of Price below */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 8px;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.price-support {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    width: 100%;
    margin: 24px 0;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    text-align: left;
    width: 100%;
    /* Ensure full width for alignment */
    flex-grow: 1;
    /* Push button to bottom */
}

/* Button override for card bottom alignment */
.pricing-card .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.list-icon {
    font-size: 1.25rem;
    color: var(--color-success);
    /* Green checks */
    font-variation-settings: 'wght' 600;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    /* Auto margin for centering if block */
    text-align: left;
    display: inline-block;
    /* Allows the block to be centered by parent's text-align:center */
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--color-text);
}

/* Testimonials - Material 3 Style */
.testimonial-card {
    grid-column: span 4;
    background-color: #E0F2FE;
    /* Surface Container low (Blue 50) */
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    border: none;
    /* No border */
    border-radius: var(--radius-lg);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.testimonial-author {
    margin-top: auto;
    display: flex;
    align-items: center;
    /* Aligns avatar and text block vertically */
    gap: 16px;
    text-align: left;
    /* Ensure text aligns left relative to avatar */
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.testimonial-info strong {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.testimonial-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Footer - Material 3 Rounded Top */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    border-radius: 64px 64px 0 0;
    /* More dramatic rounding */
    margin-top: var(--spacing-xxl);
}

.footer h2 {
    color: white;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
.mobile-cta {
    display: none;
}

/* ═══════════════════════════════════════════
   WEALTH LEAK CALCULATOR STYLES
   ═══════════════════════════════════════════ */

/* Grid Placement */
.calc-controls-card {
    grid-column: span 5;
    background-color: var(--color-surface);
}

.calc-chart-card {
    grid-column: span 7;
    background-color: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.calc-impact-card {
    grid-column: span 12;
    background-color: #FEF2F2;
    /* Light Red Surface */
    border: 1px solid rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.calc-table-card {
    grid-column: span 12;
    background-color: var(--color-surface);
}

.calc-cta-card {
    grid-column: span 12;
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding-top: 0;
}

/* Controls */
.calc-input-group {
    margin-bottom: var(--spacing-lg);
}

.calc-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calc-value-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Range Slider */
.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    outline: none;
    margin: 10px 0;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* Toggle Buttons */
.calc-toggle-group {
    display: flex;
    gap: 8px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 999px;
    width: fit-content;
}

.calc-toggle {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.calc-toggle.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calc-toggle:hover:not(.active) {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.5);
}

/* Scenarios Legend */
.calc-scenarios {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
}

.scenario-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
}

.scenario-bad {
    background-color: #FEF2F2;
    color: #EF4444;
}

.scenario-good {
    background-color: #F0F9FF;
    color: var(--color-accent);
}

.scenario-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scenario-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.scenario-item p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    color: inherit;
    opacity: 0.9;
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    position: relative;
}

/* Impact Card */
.impact-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 16px 0;
    font-family: var(--font-heading);
}

.impact-sub {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* Table Styling */
.calc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.calc-table th {
    text-align: left;
    padding: 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.calc-table td {
    padding: 20px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

.calc-table td:last-child,
.calc-table th:last-child {
    text-align: right;
}

.text-loss {
    color: var(--color-error);
    font-weight: 700;
}

/* CTA Card */
.calc-insight {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }

    .hero-content-card,
    .hero-visual-card {
        grid-column: span 12;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .eng-card,
    .testimonial-card {
        grid-column: span 12;
    }

    .hero-content-card {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }
}

/* Mobile Nav & Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.header-container {
    position: relative;
}

@media (max-width: 900px) {
    /* ... existing tablet adjustments ... */

    h1 {
        font-size: 3rem;
        text-align: center;
        /* Center visuals on tablet too? optional */
    }

    /* ... existing grid override ... */
}


/* Mobile Logo Centering & Menu */
@media (max-width: 600px) {
    .header-container {
        justify-content: space-between;
        /* Logo Left, Menu Right */
    }

    .nav {
        display: none;
        /* Hide desktop nav */
    }

    .nav-toggle {
        display: block;
        /* Static position for flex alignment */
        font-size: 2rem;
        /* Slightly larger touch target */
        color: var(--color-primary);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        /* Remove default padding */
    }

    .logo-link {
        margin: 0;
        /* Reset centering from previous attempt */
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    /* Reduce container side padding on mobile */
    .container {
        padding: 0 var(--spacing-sm);
        /* 16px instead of 24px */
    }

    /* Reduce card padding on mobile */
    .bento-card {
        padding: var(--spacing-md);
        /* 24px instead of 48px */
    }

    .hero-content-card {
        padding: var(--spacing-md);
        /* Uniform 24px padding */
        min-height: auto;
        /* Let content define height */
    }

    .hero-visual-card {
        min-height: 300px;
        /* Reduced from 520px for mobile */
        padding: 0;
        /* Remove padding for full image */
    }

    .journey-card {
        padding: var(--spacing-md);
        min-height: auto;
    }

    .eng-card {
        padding: var(--spacing-md);
    }

    /* Adjust H1 size for mobile to prevent widows */
    h1 {
        font-size: 2.5rem;
    }


    .mobile-cta {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        width: auto;
        min-width: 220px;
        padding: 16px 24px;
        background-color: var(--color-secondary-accent);
        color: var(--color-primary);
        border-radius: 999px;
        /* Fully rounded */
        font-weight: 700;
        font-size: 1rem;
        text-align: center;
        box-shadow: var(--shadow-lg);
        display: flex;
        /* Ensure flex for centering icon */
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }

    /* ─── M3 Wave Animation Mobile Fix ─── */
    .m3-section-divider {
        padding: 40px 0;
        /* Reduced padding for mobile */
        overflow: visible;
        /* Prevent arrow clipping */
    }

    .m3-section-divider svg {
        max-width: 100%;
        /* Use full width on mobile */
        width: 100%;
        height: 50px;
        /* Slightly smaller for mobile screens */
    }

    /* Hide arrow on mobile - it appears broken */
    .m3-arrow {
        display: none;
    }
}