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

/*
 * NOTE: All CSS custom properties (variables) are now defined in /assets/css/tokens.css
 * which is loaded before this file. Do not redefine colour/shadow/layout variables here.
 * See /docs/brand-rollout-plan.md for the design system documentation.
 */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header Styles */
.site-header {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Test Mode Selector */
.test-mode-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
}

.test-mode-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.test-mode-selector select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--bg-white);
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.test-mode-selector select:hover {
    border-color: var(--primary-color);
}

.test-mode-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(17, 185, 129, 0.15);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--warm-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    background: var(--warm-100);
    color: var(--navy);
}

.nav-link--highlight {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.nav-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

body.nav-open {
    overflow: hidden;
}

/* Hero Section - Base styles (page-specific overrides in home.css) */
.hero h1 span {
    color: var(--green);
}

/* Waitlist Mode Styles - Works on dark hero background */
.urgency-banner {
    margin: 2rem auto 2.5rem;
    max-width: 700px;
    text-align: center;
}

.urgency-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.urgency-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.hero .waitlist-intro {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 2.5rem;
}

/* Path Selection */
.path-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.path-option {
    cursor: pointer;
    position: relative;
}

.path-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.path-card {
    background: var(--bg-white);
    border: 3px solid var(--warm-200);
    border-radius: 1.25rem;
    padding: 2rem 2rem 2.25rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.path-option:hover .path-card {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.path-option input[type="radio"]:checked + .path-card {
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(17, 185, 129, 0.15), 0 20px 25px -5px rgba(17, 185, 129, 0.2);
    transform: translateY(-2px);
}

/* Selected indicator badge */
.path-option input[type="radio"]:checked + .path-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(17, 185, 129, 0.4);
}

.path-option input[type="radio"]:checked + .path-card::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    line-height: 28px;
}

.path-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(17, 185, 129, 0.2);
}

.path-option input[type="radio"]:checked + .path-card .path-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(17, 185, 129, 0.3);
}

.path-option:hover .path-card .path-icon {
    transform: scale(1.05) rotate(-5deg);
}

.path-icon svg {
    color: white;
    width: 36px;
    height: 36px;
}

.path-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.path-card > p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

.path-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background: rgba(17, 185, 129, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 185, 129, 0.1);
}

.path-option input[type="radio"]:checked + .path-card .path-benefits {
    background: rgba(17, 185, 129, 0.08);
    border-color: rgba(17, 185, 129, 0.2);
}

.path-benefits span {
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 500;
    text-align: left;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.path-benefits span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Launch Status Section */
.launch-status {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(17, 185, 129, 0.03) 0%, rgba(17, 185, 129, 0.08) 100%);
    border-top: 1px solid rgba(17, 185, 129, 0.1);
    border-bottom: 1px solid rgba(17, 185, 129, 0.1);
}

.launch-status-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(17, 185, 129, 0.3);
}

.status-badge svg {
    width: 20px;
    height: 20px;
}

.launch-status h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.launch-status p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.approval-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.approval-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 0.5rem;
    border: 2px solid rgba(17, 185, 129, 0.2);
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.approval-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Responsive path selection */
@media (max-width: 768px) {
    .path-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .path-card {
        padding: 1.5rem 1.25rem;
    }

    .launch-status {
        padding: 3rem 0;
    }

    .launch-status h2 {
        font-size: 1.625rem;
    }

    .approval-logos {
        flex-direction: column;
        align-items: center;
    }
}

.hero .search-container {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero .search-box {
    position: relative;
    margin-bottom: 0.25rem;
}

.hero .search-input {
    width: 100%;
    padding: 1.5rem 3.5rem 1.5rem 3.5rem;
    font-size: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(17, 185, 129, 0.2);
}

.hero .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    z-index: 10;
    width: 24px;
    height: 24px;
}

.hero .clear-search {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .clear-search:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.hero .clear-search:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 185, 129, 0.3);
}

.hero .search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.hero .search-results.active {
    display: block;
}

/* Helper text below search box */
.search-helper-text {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.search-helper-text a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.search-helper-text a:hover {
    color: var(--primary-dark);
}

/* Search Section - removed, now integrated in hero */

.company-result {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    text-align: left;
}

.company-result:hover {
    background: var(--bg-light);
}

.company-result:last-child {
    border-bottom: none;
}

.company-info {
    margin-bottom: 1rem;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.company-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-dark);
    flex: 1;
    min-width: 0;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.company-number {
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
}

/* Mobile: Stack company header */
@media (max-width: 640px) {
    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.company-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: var(--success-bg);
    color: var(--success-dark);
}

.status-dissolved {
    background: var(--error-bg);
    color: var(--error-dark);
}

/* Filing Type Selection */
.filing-type-prompt {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.filing-type-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.filing-type-button {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.filing-type-button:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 185, 129, 0.15);
}

.filing-type-button:active {
    transform: translateY(0);
}

.filing-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    stroke-width: 2;
}

.filing-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.filing-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--info-dark);
    line-height: 1.5;
}

.filing-note svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* CIC/entity-restricted filing notice */
.filing-type-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--warning-bg);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--warning-dark);
    grid-column: 1 / -1;
}

.filing-type-notice .notice-icon {
    flex-shrink: 0;
    stroke: var(--warning-color);
}

/* Responsive: Stack buttons on mobile */
@media (max-width: 640px) {
    .filing-type-buttons {
        grid-template-columns: 1fr;
    }

    .filing-type-button {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .filing-label {
        text-align: left;
    }
}

/* Manual Entry Option (for non-Companies House organisations) */
.search-manual-entry {
    padding: 0 1.5rem 1.5rem;
}

.search-manual-entry-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.search-manual-entry-divider::before,
.search-manual-entry-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.search-manual-entry-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.search-manual-entry-button:hover {
    border-color: var(--primary-color);
    background: var(--primary-50);
}

.search-manual-entry-button:hover .manual-entry-icon,
.search-manual-entry-button:hover .manual-entry-arrow {
    color: var(--primary-color);
}

.manual-entry-icon {
    flex-shrink: 0;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.manual-entry-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.manual-entry-text strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.manual-entry-subtext {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.manual-entry-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    transition: color 0.2s ease;
}

/* No results message */
.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Test dropdown styles */
.test-dropdown-container {
    position: relative;
    display: inline-block;
}

.test-button {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    padding-right: 2.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-button:hover {
    background-color: var(--warning-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.dropdown-arrow {
    position: absolute;
    right: 0.75rem;
    transition: transform 0.2s ease;
}

.test-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    min-width: 120px;
}

.test-menu button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s ease;
}

.test-menu button:hover {
    background: var(--bg-light);
    color: var(--warning-color);
}

.test-menu button:first-child {
    border-bottom: 1px solid var(--border-color);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #FFFFFF;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: var(--green);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--green);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--coral);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.testimonials-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.carousel-button-prev {
    left: 0;
}

.carousel-button-next {
    right: 0;
}

.carousel-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.testimonials-track {
    overflow: hidden;
    border-radius: 1rem;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: calc(50% - 1rem);
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-right: 2rem;
}

.testimonial-card:last-child {
    margin-right: 0;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.testimonial-profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-company {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonial-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.125rem;
    margin: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

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

    .testimonials-section h2 {
        font-size: 2rem;
    }

    .testimonials-carousel {
        padding: 0 3rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }

    .carousel-button svg {
        width: 20px;
        height: 20px;
    }

    .testimonial-card {
        min-width: 100%;
        margin-right: 0;
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 0 2rem;
    }

    .carousel-button {
        width: 36px;
        height: 36px;
    }

    .carousel-button svg {
        width: 18px;
        height: 18px;
    }

    .testimonial-card {
        min-width: 100%;
        margin-right: 0;
        padding: 1.5rem;
    }

    .testimonial-rating svg {
        width: 18px;
        height: 18px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .testimonial-profile-picture {
        width: 64px;
        height: 64px;
    }
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(17, 185, 129, 0.15);
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-dark);
    border: 1px solid var(--info-border);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-dark);
    border: 1px solid var(--success-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-dark);
    border: 1px solid var(--warning-border);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-dark);
    border: 1px solid var(--error-border);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-left-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Footer Styles */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--warm-300);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social a svg {
    transition: transform 0.2s ease;
}

.footer-social a:hover svg {
    transform: scale(1.1);
}

.founder-name {
    font-size: 0.9rem;
    color: var(--warm-300);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--warm-400);
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer-terms-link {
    color: inherit;
    text-decoration: underline;
}

.dev-tools-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.clear-database-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.clear-database-btn:hover {
    background: var(--error-dark);
}

.dev-ip-display {
    font-size: 10px;
    color: var(--warm-400);
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-sticky-offset: var(--header-height-mobile);
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-sticky-offset);
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        background-color: var(--bg-white);
        padding: 1.5rem 1.25rem 2rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
        z-index: 110;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .nav-actions {
        padding-top: 0.5rem;
    }

    .nav-actions::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: var(--border-color);
        opacity: 0.5;
        margin-bottom: 1rem;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        font-size: 1rem;
        padding: 12px 16px;
    }

    .nav-action-link {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .search-input {
        font-size: 1rem;
        padding: 1.25rem 3rem 1.25rem 3rem;
    }
    
    .company-details {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .select-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .test-button {
        padding: 0.5rem 1rem;
        padding-right: 2rem;
        font-size: 0.8125rem;
    }
    
    .test-menu {
        min-width: 100px;
    }
    
    .test-menu button {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Tablet footer layout */
@media (min-width: 769px) and (max-width: 1100px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-section--founder {
        grid-column: 1;
        grid-row: 2;
    }
}

/* Header Progress Bar Styles */
.header-progress-wrapper {
    background: var(--warm-50);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-progress-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.header-progress-line {
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--warm-200);
    border-radius: 1px;
}

.header-progress-line-active {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--primary-dark));
    border-radius: 1px;
    transition: width 0.5s ease;
}

.header-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 10px;
}

.header-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.header-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--warm-200);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.header-progress-step.active .header-step-circle {
    border-color: var(--green);
    background: var(--green);
    transform: scale(1.1);
}

.header-progress-step.completed .header-step-circle {
    border-color: var(--green);
    background: var(--green);
}

.header-step-number {
    font-weight: 600;
    color: var(--warm-500);
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-progress-step.active .header-step-number,
.header-progress-step.completed .header-step-number {
    color: white;
}

.header-step-check {
    position: absolute;
    width: 16px;
    height: 16px;
    color: white;
    display: none;
}

.header-progress-step.completed .header-step-check {
    display: block;
}

.header-progress-step.completed .header-step-number {
    display: none;
}

.header-step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--warm-500);
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-progress-step.active .header-step-label {
    color: var(--green);
    font-weight: 600;
}

.header-progress-step.completed .header-step-label {
    color: var(--green);
}

.header-progress-step.partial .header-step-circle {
    border-color: var(--green);
    background: linear-gradient(90deg, var(--green) 50%, white 50%);
}

.header-progress-step.partial .header-step-number {
    display: none;
}

.header-progress-step.partial .header-step-check {
    display: none;
}

@media (max-width: 640px) {
    .header-progress-line {
        left: 30px;
        right: 30px;
    }
    
    .header-step-label {
        font-size: 10px;
    }
    
.header-step-circle {
        width: 28px;
        height: 28px;
    }
}

/* SIC warning modal */
.sic-warning-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.sic-warning-modal.is-active {
    display: flex;
}

.sic-warning-dialog {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 600px;
    width: min(600px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.sic-warning-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--warm-200);
}

.sic-warning-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sic-warning-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--warning-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sic-warning-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--warm-900);
}

.sic-warning-subtitle {
    margin: 8px 0 0;
    font-size: 0.875rem;
    color: var(--warm-500);
}

.sic-warning-body {
    padding: 24px;
}

.sic-warning-content {
    margin-bottom: 20px;
}

.sic-warning-content-text {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: var(--warm-700);
}

.sic-warning-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sic-warning-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.sic-warning-list-bullet {
    color: var(--warning-color);
    font-size: 1rem;
    line-height: 1;
    margin-top: 2px;
}

.sic-warning-list-text {
    font-size: 0.875rem;
    color: var(--warm-500);
    line-height: 1.5;
}

.sic-warning-list-code {
    color: var(--warm-900);
    font-weight: 600;
    margin-right: 4px;
}

.sic-warning-info-card {
    background-color: var(--warm-50);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.sic-warning-info-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--warm-600);
    line-height: 1.6;
}

.sic-warning-alert {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.sic-warning-alert-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--error-dark);
    line-height: 1.6;
}

.sic-warning-alert-list {
    margin: 8px 0 0 20px;
    padding: 0;
    font-size: 0.875rem;
    color: var(--error-dark);
    line-height: 1.6;
}

.sic-warning-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--warm-200);
    background-color: var(--warm-50);
    border-radius: 0 0 12px 12px;
}

.sic-warning-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.sic-warning-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.sic-warning-button--secondary {
    background-color: var(--bg-white);
    color: var(--warm-700);
    border: 1px solid var(--warm-300);
}

.sic-warning-button--secondary:hover {
    background-color: var(--warm-100);
}

.sic-warning-button--primary {
    background-color: var(--warning-color);
    color: var(--bg-white);
}

.sic-warning-button--primary:hover {
    background-color: var(--warning-dark);
}

.sic-warning-note {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--warm-500);
    text-align: center;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0 3rem 0;
    background: var(--bg-white);
    text-align: center;
}

.pricing-container {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pricing-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Accountants Section */
.accountants-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(17, 185, 129, 0.05) 0%, rgba(17, 185, 129, 0.1) 100%);
    border-top: 1px solid rgba(17, 185, 129, 0.1);
}

.accountants-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.accountants-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.accountants-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.accountants-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.accountants-urgency {
    background: var(--warning-bg);
    border: 2px solid var(--warning-color);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin: 0 auto 2.5rem;
    font-weight: 600;
    color: var(--warning-dark);
    font-size: 1rem;
}

.accountants-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.accountants-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    border: 2px solid rgba(17, 185, 129, 0.2);
    transition: all 0.3s;
}

.accountants-benefit:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(17, 185, 129, 0.15);
}

.accountants-benefit svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

.accountants-benefit strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.accountants-benefit p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

.accountants-cta {
    margin-top: 2rem;
}

.accountants-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(17, 185, 129, 0.3);
}

.accountants-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17, 185, 129, 0.4);
}

.accountants-button svg {
    width: 20px;
    height: 20px;
}

.accountants-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

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

    .accountants-section h2 {
        font-size: 1.625rem;
    }

    .accountants-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Floating Feedback Button - Bookmark Style */
.floating-feedback-widget {
    position: fixed;
    right: 24px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 9998;
}

.floating-feedback-btn {
    background: var(--primary-color);
    color: white;
    padding: 14px 22px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 32px rgba(17, 185, 129, 0.25), 0 8px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
    max-width: 260px;
    white-space: normal;
    text-align: left;
}

.floating-feedback-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 24px 36px rgba(17, 185, 129, 0.3), 0 12px 18px rgba(0, 0, 0, 0.14);
}

.floating-feedback-btn svg {
    flex-shrink: 0;
}

.feedback-dismiss-btn {
    background: rgba(15, 23, 42, 0.65);
    color: white;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.feedback-dismiss-btn:hover,
.feedback-dismiss-btn:focus-visible {
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-1px);
}

.feedback-widget--hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .floating-feedback-widget {
        bottom: 16px;
        right: 16px;
        left: 16px;
        justify-content: flex-end;
    }

    .floating-feedback-btn {
        padding: 12px 18px;
        font-size: 0.875rem;
        border-radius: 14px;
        box-shadow: 0 12px 24px rgba(17, 185, 129, 0.25), 0 6px 12px rgba(0, 0, 0, 0.1);
        max-width: none;
    }

    .floating-feedback-btn svg {
        width: 18px;
        height: 18px;
    }

    .floating-feedback-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(17, 185, 129, 0.3), 0 8px 14px rgba(0, 0, 0, 0.12);
    }
}
