/* Browser Mockup */
.browser-window {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e1e4e8;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.browser-toolbar {
    background: #f0f2f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1e4e8;
    gap: 16px;
}

.browser-controls {
    display: flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red {
    background: #ff5f56;
    border: 1px solid #e0443e;
}

.control-dot.yellow {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.control-dot.green {
    background: #27c93f;
    border: 1px solid #1aab29;
}

.browser-address {
    background: #ffffff;
    border-radius: 6px;
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    color: #555;
    border: 1px solid #e1e4e8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.browser-address span {
    margin-left: 8px;
}

/* Fake Website Content */
.fake-site {
    padding: 32px 40px;
    min-height: 480px;
    background: #fff;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fake-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
}

.fake-logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fake-logo {
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 6px;
}

.fake-logo-text {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.fake-menu {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.fake-user {
    width: 32px;
    height: 32px;
    background: #eee;
    border-radius: 50%;
}

.fake-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.fake-badge {
    font-size: 10px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 8px;
    border-radius: 99px;
    margin-bottom: 16px;
    display: inline-block;
}

.fake-hero h1 {
    font-size: 42px;
    line-height: 1.1;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    max-width: 600px;
}

.fake-hero p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    max-width: 440px;
    line-height: 1.5;
}

.fake-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.fake-chart-container {
    width: 100%;
    max-width: 600px;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 40px;
    gap: 20px;
}

.fake-chart-bar {
    flex: 1;
    background: #f3f4f6;
    border-radius: 4px 4px 0 0;
}

.fake-chart-bar:nth-child(even) {
    background: #e5e7eb;
}

.highlight-word {
    position: relative;
    display: inline-block;
}

/* Handwritten Annotations */
/* .annotation-layer removed as it's no longer needed */

.hand-drawn {
    position: absolute;
    color: #FF2D55;
    stroke-width: 2px;
    filter: drop-shadow(0 2px 4px rgba(255, 45, 85, 0.2));
    pointer-events: none;
}

.highlight-word .annotation-underline-svg {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    top: auto;
    transform: none;
}

.fake-btn-wrapper {
    position: relative;
    display: inline-block;
}

.fake-btn-wrapper .annotation-circle-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000%;
    height: 1000%;
    transform: translate(-50%, -50%) rotate(-2deg);
}

.fake-btn-wrapper .annotation-arrow-svg {
    position: absolute;
    top: -10px;
    left: 100%;
    width: 60px;
    height: 60px;
    margin-left: 15px;
}

.fake-btn-wrapper .annotation-text {
    top: -50px;
    left: 100%;
    width: max-content;
    margin-left: 60px;
    transform: none;

    /* Font styles matching annotationCanvas.ts */
    font-family: system-ui, -apple-system, sans-serif;
    color: #FF2D55;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;

    /* IOS Glass Effect matching annotationCanvas.ts */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.10) 100%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 12px;
    padding: 6px 12px;

    /* Border & Shadow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);

    /* Override generic hand-drawn filter */
    filter: none;
}

:root {
    --color-primary: #FF2D55;
    --color-primary-hover: #E0284A;
    --color-text-dark: #1A1A1A;
    --color-text-body: #4A4A4A;
    --color-text-light: #8A8A8A;
    --color-bg-body: #FFFFFF;
    --color-bg-alt: #F9F9F9;
    --color-border: #EAEAEA;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1100px;
    --header-height: 80px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 45, 85, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-dark);
}

.btn-outline:hover {
    border-color: var(--color-text-dark);
    background-color: var(--color-text-dark);
    color: white;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-body);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 50px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-visual {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    background: #F0F2F5;
    /* Placeholder */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCC;
    font-size: 1.5rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.features-grid-two-col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 45, 85, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

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

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Legal Pages Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.legal-content h2 {
    margin-top: 40px;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

/* Workflow Steps Section */
.workflow-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.workflow-step {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 32px;
    width: 320px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    margin-top: 8px;
}

.step-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.step-time {
    display: inline-block;
    background: rgba(255, 45, 85, 0.1);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-top: 12px;
}

/* Keyboard Shortcuts Styling */
.keyboard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.shortcut-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shortcut-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: linear-gradient(180deg, #FAFAFA 0%, #ECECEC 100%);
    border: 1px solid #D4D4D4;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-dark);
    box-shadow: 0 2px 0 #C4C4C4, 0 3px 3px rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
}

.kbd-small {
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
    padding: 0 6px;
}

.kbd-inline {
    min-width: 24px;
    height: 22px;
    font-size: 0.75rem;
    padding: 0 6px;
    vertical-align: middle;
}

.kbd-plus {
    color: var(--color-text-light);
    font-size: 0.75rem;
    margin: 0 2px;
}

/* Workflow Summary */
.workflow-summary {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.05) 0%, rgba(255, 45, 85, 0.02) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 45, 85, 0.1);
}

.summary-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.summary-hint {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Responsive Workflow Steps */
@media (max-width: 1024px) {
    .workflow-steps {
        gap: 30px;
    }

    .workflow-step {
        width: 280px;
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }

    .workflow-step {
        width: 100%;
        max-width: 400px;
    }

    .keyboard-shortcuts {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .summary-badge {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
}

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

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

.footer-link {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.footer-link:hover {
    color: var(--color-primary);
}

.copyright {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-two-col {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        display: none;
    }


    /* TODO: Mobile Menu */
}

/* Promo Banner Styles (1400x560) */
.promo-banner {
    width: 1400px;
    height: 560px;
    padding: 0 !important;
    /* Override hero-visual padding */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
    margin: 60px 0 0;
    /* Align top, horizontal centering handled below */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: none !important;
    /* Allow fixed width */
    background: #F2F4F7;
    /* Slightly darker than pure white, distinct from site bg */
    border-radius: 20px;
    /* Smoother radius */
}

.banner-content {
    flex: 0 0 450px;
    /* Fixed width for list */
    padding: 60px 40px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.banner-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-text-dark);
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.banner-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.banner-features .icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.banner-features .text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-dark);
}

.banner-features .text p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.banner-cta {
    margin-top: 40px;
}

.banner-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Push browser to right */
    position: relative;
    padding-right: 40px;
    padding-left: 20px;
}

/* Adjust the browser window for the banner context */
.banner-visual .browser-window {
    width: 100%;
    max-width: 850px;
    height: auto;
    max-height: 480px;
    /* Ensure it fits vertically within 560px */
    margin: 0;
    /* Align as flex item */
    box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow for depth */
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

/* Ensure fake site scales or fits nicely */
.banner-visual .fake-site {
    min-height: 450px;
    /* Reduced min-height to fit */
    padding: 24px 32px;
}

.banner-visual .fake-nav {
    margin-bottom: 40px;
}

.banner-visual .fake-hero h1 {
    font-size: 32px;
    /* Scale down slightly */
}

.banner-visual .fake-chart-container {
    height: 120px;
    /* Scale down slightly */
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .promo-banner {
        width: 100%;
        height: auto;
        min-height: 500px;
        left: 0;
        transform: none;
        margin-top: 40px;
        flex-wrap: wrap;
    }

    .banner-content {
        flex: 1 1 400px;
        padding: 40px;
    }

    .banner-visual {
        flex: 1 1 500px;
        padding: 0 20px 0 0;
        justify-content: center;
        overflow: hidden;
        /* Clip browser if it gets too tight */
    }

    .banner-visual .browser-window {
        max-width: 100%;
        margin-right: -100px;
        /* Let it bleed off edge slightly if needed, or center */
        margin-right: 0;
        transform: scale(0.9);
        transform-origin: center right;
    }
}

@media (max-width: 1024px) {
    .promo-banner {
        flex-direction: column;
        padding-bottom: 40px !important;
    }

    .banner-content {
        flex: none;
        width: 100%;
        padding: 40px 30px;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .banner-features {
        align-items: flex-start;
        text-align: left;
    }

    .banner-visual {
        width: 100%;
        padding: 0 20px;
        justify-content: center;
        overflow: visible;
    }

    .banner-visual .browser-window {
        transform: none;
        margin: 0;
        max-height: 400px;
    }

    .banner-visual .fake-site {
        min-height: 350px;
        padding: 20px;
    }

    .banner-visual .fake-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .promo-banner {
        border-radius: 12px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .banner-content {
        padding: 30px 20px;
    }

    .banner-features .text h3 {
        font-size: 15px;
    }

    .banner-features .text p {
        font-size: 13px;
    }

    .banner-text h2 {
        font-size: 2rem;
    }

    .banner-visual .fake-hero h1 {
        font-size: 24px;
    }

    .banner-visual .fake-nav {
        display: none;
        /* Hide nav on very small screens to save space */
    }
}