body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px;
}

/* --- Typography --- */

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-weight: normal;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #777;
    font-weight: normal;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0D9488;
}

a {
    color: #0D9488;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Unified focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* --- Logo --- */

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    width: 150px;
    height: auto;
    border: none;
}

/* --- Forms & Inputs --- */

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

input[type="email"],
input[type="password"],
input[type="number"],
textarea,
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #f0fffe !important;
}

/* Force background color for all input states */
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
textarea:focus {
    background-color: #f0fffe !important;
}

/* Override browser autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #f0fffe inset !important;
    -webkit-text-fill-color: #333 !important;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 15px;
}

textarea {
    resize: vertical;
}

/* --- Unified Button System --- */

.button {
    background-color: #0D9488;
    color: white;
    padding: 12px 20px !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.2;
    min-width: 180px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: inline-block;
    box-sizing: border-box;
}

.button:hover {
    background-color: #0A7F71;
}

/* Unified button container for all sections */
.button-container {
    text-align: center;
    margin: 25px 0;
}

.button-container .button {
    margin: 5px 10px;
}

/* Legacy support - redirect old classes to new unified container */
.button-group,
.preview-actions,
.results-actions {
    text-align: center;
    margin: 25px 0;
}

.button-group .button,
.preview-actions .button,
.results-actions .button {
    margin: 5px 10px;
}

/* Large download button for HAINT */
.download-haint-button {
    font-size: 1.2rem !important;
    padding: 1rem 2rem !important;
}

.download-section-footer {
    margin-top: 2rem;
}

.page-description {
    text-align: center;
    margin: 25px 0;
    color: #555;
    line-height: 1.6;
}

/* --- Footer --- */

.form-footer {
    text-align: right;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}

.form-footer-link {
    text-align: right;
    margin-top: 20px;
}

.site-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

.site-footer p {
    margin: 0;
}

/* --- Navigation --- */

.main-nav {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.main-nav a {
    margin: 0 15px;
    font-weight: bold;
}

/* --- Utility & Component Styles --- */



/* Custom File Input */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    background-color: #0D9488;
    color: white;
    padding: 12px 20px !important;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    min-width: 180px;
    box-sizing: border-box !important;
    transition: background-color 0.3s ease;
}

.file-input-wrapper:hover {
    background-color: #0A7F71;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-input-name {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #555;
    font-size: 14px;
}

/* Status & Error Messages */
.status-message {
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
}

.status-message.success {
    color: #0D5C45;
    background-color: #c8dcd7;
    border: 1px solid #b3e5df;
    text-align: left;
    font-weight: normal;
}

.status-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

/* Email notification style - consistent with site color palette */
.email-notification {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #c8dcd7;
    border-left: 4px solid #0D9488;
    border-radius: 4px;
    color: #0D5C45;
    font-size: 14px;
    line-height: 1.4;
}

.email-notification p {
    margin: 0;
    font-weight: normal;
}

/* Professional Analysis Success Message */
.analysis-success-header {
    font-size: 16px;
    font-weight: normal;
    color: #0D5C45;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #c3e6cb;
    padding-bottom: 10px;
}

.analysis-details {
    margin: 15px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    padding: 2px 0;
}

.detail-label {
    font-weight: normal;
    color: #0F5C42;
    flex: 1;
    text-align: right;
    padding-right: 10px;
}

.detail-value {
    color: #0F5C42;
    padding: 2px 6px;
    border-radius: 3px;
    flex: 1.5;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
}

/* Monospace font only for technical identifiers */
.detail-value.technical {
    font-family: 'Courier New', monospace;
}

.analysis-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #c3e6cb;
    font-style: normal;
    color: #0F5C42;
    text-align: center;
    line-height: 1.4;
}

.control-fixed-width {
    width: 100%;
    padding: 12px;
}

/* Utility class to hide elements */
.hidden {
    display: none;
}

/* --- Anonymous Dashboard Styles --- */

.form-section {
    margin: 0;
    padding: 8px 0;
}

/* Progress Bar Styles */
.progress-container {
    margin: 30px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D9488 0%, #14B8A6 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 9px;
}

.progress-text {
    font-size: 18px;
    font-weight: bold;
    color: #0D9488;
    margin-bottom: 10px;
}

.progress-stage {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-time {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.progress-project {
    font-size: 14px;
    color: #0D9488;
    font-weight: 500;
}

/* Results Section */
.results-container {
    margin: 20px 0;
}

.results-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.results-info {
    color: #495057;
}

.status-no-data {
    color: #f59e0b;
    font-weight: 500;
}

.status-failed {
    color: #dc2626;
    font-weight: 500;
}

.no-data-explanation {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.explanation-content {
    color: #92400e;
}

.explanation-content strong {
    color: #78350f;
    display: block;
    margin-bottom: 8px;
}

.explanation-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.explanation-content li {
    margin-bottom: 4px;
    font-size: 14px;
}

.explanation-content p {
    margin: 12px 0 0 0;
    font-size: 14px;
    font-weight: 500;
}

.error-explanation {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.error-content {
    color: #991b1b;
}

.error-content strong {
    color: #7f1d1d;
    display: block;
    margin-bottom: 8px;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 10px;
    margin: 8px 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #7f1d1d;
    word-break: break-word;
}

.error-suggestions {
    margin-top: 12px;
}

.error-suggestions ul {
    margin: 8px 0;
    padding-left: 20px;
}

.error-suggestions li {
    margin-bottom: 4px;
    font-size: 14px;
}

.error-suggestions p {
    margin: 12px 0 0 0;
    font-size: 14px;
    font-weight: 500;
}


.result-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.status-item {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    background: #f8f9fa;
    border-radius: 6px;
    border: none !important;
}

.result-item strong {
    color: #0D9488;
    font-weight: 600;
}

/* Interactive download status */
.download-status {
    color: #0D9488;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    display: inline;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    border-radius: 3px;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    vertical-align: baseline;
}

.download-status:hover {
    color: #0A7F71;
    background-color: #f0fffe;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.download-status:active {
    transform: translateY(1px);
}

/* Status text wrapper for better layout */
.status-text {
    color: inherit;
    font-weight: normal;
    display: inline;
    padding: 0;
    margin: 0;
    vertical-align: baseline;
}

/* Specific results actions states */
.results-actions.minimal {
    text-align: center;
    margin: 25px 0;
}

.results-actions.minimal .button {
    margin: 5px 10px;
}

.results-actions.failed {
    text-align: center;
    margin: 25px 0;
}

.button-secondary {
    background-color: #6c757d;
    color: white;
    padding: 12px 20px !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.2;
    min-width: 180px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: inline-block;
    box-sizing: border-box;
    margin: 5px 10px;
}

.button-secondary:hover {
    background-color: #5a6268;
}

/* --- Requirements Info Section --- */

/* Prerequisites wrapper for collapsible functionality */
.prerequisites-wrapper {
    margin-bottom: 16px;
}

/* Collapsed state */
.prerequisites-collapsed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e6f7f5;
    border: 1px solid #99d9d1;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(13, 148, 136, 0.08);
}

.collapsed-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.status-complete {
    background: #0D9488;
    color: white;
}

.collapsed-text {
    color: #0a5a52;
    font-size: 14px;
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #99d9d1;
    border-radius: 6px;
    padding: 8px 16px;
    color: #0a5a52;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expand-btn:hover {
    background: #d1f0ec;
    border-color: #0D9488;
    color: #0D9488;
}

.expand-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* Expanded state */
.prerequisites-expanded {
    animation: fadeIn 0.3s ease;
}

.prerequisites-expanded.expanding {
    animation: expandDown 0.3s ease;
}

.prerequisites-expanded.collapsing {
    animation: collapseUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expandDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes collapseUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.requirements-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.requirements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.requirements-header h3 {
    margin: 0;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
}

.collapse-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collapse-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

.collapse-icon {
    font-size: 12px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-icon {
    font-size: 18px;
}

.req-content {
    display: flex;
    flex-direction: column;
}

.req-content strong {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.2;
}

.req-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

/* Setup Methods */
.setup-methods {
    margin-top: 15px;
}

.setup-methods h4 {
    margin: 0 0 15px 0;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
}

.setup-method-option {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

/* Recommended setup visual emphasis */
.setup-method-option.recommended {
    border: 2px solid #0D9488;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7em;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.badge-recommended {
    background-color: #0D9488;
    color: white;
}

.method-toggle {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.method-toggle:hover {
    background: #f8fafc;
}

.method-toggle.active {
    background: #f0f9ff;
    border-bottom: 1px solid #e2e8f0;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-icon {
    font-size: 20px;
}

.method-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.method-info strong {
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 2px;
}

.method-desc {
    color: #64748b;
    font-size: 12px;
}

.toggle-arrow {
    color: #64748b;
    font-size: 14px;
    transition: transform 0.2s;
}

.method-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.method-content {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.setup-content {
    margin-bottom: 15px;
}

/* Manual Setup Styles */
.manual-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.roles-list {
    margin: 10px 0;
}

.role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    margin: 4px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.role-item code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #0d9488;
    background: none;
    padding: 0;
}

.role-desc {
    font-size: 11px;
    color: #64748b;
}

.billing-steps {
    margin: 10px 0;
    padding-left: 18px;
}

.billing-steps li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.billing-steps code {
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #0d9488;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.step-text strong {
    color: #1e293b;
}

.inline-link {
    color: #0d9488;
    text-decoration: none;
    font-weight: 500;
}

.inline-link:hover {
    text-decoration: underline;
}

.command-box {
    background: #1e293b;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 6px 0;
    position: relative;
    overflow-x: auto;
}

.command-box code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #0d9488;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: #0f766e;
}

.script-features {
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 3px;
    border-left: 3px solid #0d9488;
}

.script-features small {
    color: #0f766e;
    font-size: 11px;
    line-height: 1.3;
}

.setup-footer {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.security-icon {
    font-size: 14px;
}

.security-note a {
    color: #0d9488;
    text-decoration: none;
}

.security-note a:hover {
    text-decoration: underline;
}


/* --- Global Layout for Marketing Pages --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 24px;
}

.brand img { height: 32px; width: auto; }

.main-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-menu a { font-weight: 600; color: #0f172a; }
.main-menu a:hover { color: #0d9488; }
.main-menu a[aria-current="page"],
.main-menu a.is-active { color: #0d9488; border-bottom: 2px solid #0d9488; padding-bottom: 2px; }

/* Account strip on the right */
.account-strip { display: flex; align-items: center; gap: 12px; margin-left: 24px; }
.account-email { color: #64748b; font-size: 13px; }
.account-link { color: #0f172a; font-weight: 600; }
.account-link:hover { color: #0d9488; }

.cta-primary { background: #0D9488; color: #fff; padding: 12px 20px; border-radius: 4px; font-size: 16px; line-height: 1.2; display: inline-block; }
.cta-primary:hover { background: #0A7F71; color: #fff; }

/* Outline CTA for header to reduce competition with Hero CTA */
.cta-outline { 
    color: #0D9488; 
    border: 1px solid #0D9488; 
    padding: 12px 20px; 
    border-radius: 4px; 
    font-size: 16px; 
    line-height: 1.2; 
    display: inline-block;
}
.cta-outline:hover { background: #ecfdf5; color: #0A7F71; border-color: #0A7F71; }

.page-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 16px 40px 16px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    margin: 12px 0 6px 0;
}

.hero > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 { font-size: 28px; color: #0f172a; margin: 0 0 10px 0; text-align: left; }
.hero p { color: #475569; margin: 0 0 12px 0; text-align: left; }
.hero .microcopy { font-size: 12px; color: #64748b; margin-top: 6px; }

/* CTA subtext styling */
.cta-subtext {
  font-size: 14px;
  color: #64748b;
  margin: 8px 0 12px 0;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 16px; margin: 8px 0; }
    .site-header-inner { padding: 8px 12px; }
    .brand { margin-right: 16px; }
    .account-strip { margin-left: 16px; }
}

/* --- Unified Section Styling --- */
.section {
    margin: 0;
    padding: 12px 0;
    position: relative;
}

/* Add subtle visual separation between sections */
.section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.section h3 {
    margin: 0 0 20px 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
}

.section p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Special spacing for hero section */
.hero {
    margin-bottom: 60px;
}

/* Adjust form sections to work with new spacing */
.form-section {
    margin: 0;
    padding: 8px 0;
}

/* Social proof section - make it stand out */
.social-proof {
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px 30px;
    margin: 60px 0;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.social-proof::after {
    display: none; /* Remove default separator for special sections */
}

/* Case study sections spacing */
.case-studies .section {
    margin: 40px 0;
    padding: 25px 0;
}

/* Security page sections - tighter spacing for lists */
.security-page .section {
    margin: 35px 0;
    padding: 20px 0;
}

/* FAQ sections */
.faq {
    margin: 16px 0;
}

/* Video block */
.video-wrapper { 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 0 auto;
    width: 300px;
    aspect-ratio: 540/960;
}
.video-wrapper video { 
    width: 100%; 
    height: 100%; 
    display: block;
    object-fit: cover;
}
.video-actions { margin-top: 10px; }

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease, opacity 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
}

.play-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.video-wrapper:hover .video-play-overlay {
    background: rgba(13, 148, 136, 0.9);
}

.video-wrapper video[controls] {
    cursor: default;
}

.video-wrapper video[controls] + .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Secondary links row under primary CTA */
.link-row { margin-top: 14px; }
.link-secondary { color: #0d9488; font-weight: 600; text-decoration: none; }
.link-secondary:hover { text-decoration: underline; color: #0a7f71; }
.link-sep { color: #94a3b8; margin: 0 6px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; box-sizing: border-box; }
.lightbox.open { display: flex; }
.lightbox-content { 
    position: relative;
    max-width: 90vw; 
    max-height: 90vh; 
    background: #000; 
    border-radius: 8px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}
.lightbox-close { position: absolute; top: 20px; right: 20px; background: #0d9488; color: #fff; border: 0; border-radius: 4px; padding: 6px 10px; cursor: pointer; z-index: 2001; }

/* Sample slider */
.slider { position: relative; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 6px; }
.slides { display: flex; transition: transform 0.3s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: auto; display: block; }
.slider-controls { display: flex; justify-content: center; gap: 20px; margin: 25px 0; }
.slider-controls.button-container .button { margin: 0 10px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; background: #f8fafc; }
.step strong { color: #0f172a; display: block; margin-bottom: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* How it works - alternative markup with step cards (used in HAINT) */
.steps-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.step-card { 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 24px; 
    background: #ffffff;
    text-align: center;
    transition: all 0.2s ease;
}

.step-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-icon { 
    width: 56px; 
    height: 56px; 
    border: 2px solid #e2e8f0; 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    font-weight: 700; 
    color: #0D9488; 
    background: #ffffff;
    margin: 0 auto 16px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-card h3 { 
    color: #0f172a; 
    font-size: 18px; 
    font-weight: 600; 
    margin: 0 0 12px 0; 
}

.step-card p { 
    color: #64748b; 
    font-size: 14px; 
    line-height: 1.6; 
    margin: 0; 
}

@media (max-width: 900px) { 
    .steps-grid { grid-template-columns: 1fr; } 
}

/* Social proof */
.social-proof { display: grid; gap: 12px; }
.quote { font-style: italic; color: #334155; }

/* FAQ: keep content visible for SEO while collapsible */
details.faq { border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 12px; background: #fff; }
details.faq[open] { background: #f8fafc; }
details.faq summary { cursor: pointer; font-weight: 600; color: #0f172a; }
.faq-content { margin-top: 6px; color: #475569; }

.site-footer-min { border-top: 1px solid #e5e7eb; padding: 20px 0; margin-top: 30px; color: #64748b; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-copy { margin-top: 8px; }

/* Audit page embed */
.calendly-embed { min-width: 320px; height: 700px; }

/* Trust bullets under hero CTA */
.trust-list { 
    list-style: none; 
    padding: 0; 
    margin: 10px 0 0 0; 
    color: #475569; 
}
.trust-list li { 
    margin: 4px 0; 
    padding-left: 18px; 
    position: relative; 
}
.trust-list li::before { 
    content: "✓"; 
    color: #0d9488; 
    position: absolute; 
          left: 0; 
  }

  /* Report preview section */
  .report-preview {
      display: flex;
      gap: 20px;
      justify-content: center;
      margin: 30px 0;
  }

  .preview-item {
      flex: 1;
      max-width: 30%;
      border: 1px solid #e1e1e1;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .preview-link { display: block; color: inherit; text-decoration: none; }
  .preview-link:focus { outline: 2px solid #0d9488; outline-offset: 2px; }

  .preview-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .preview-item img {
      width: 100%;
      height: auto;
      display: block;
  }

  .preview-caption {
      padding: 12px;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      background: #f9f9f9;
      color: #333;
  }

  .preview-actions {
      text-align: center;
      margin-top: 20px;
  }

  /* Mobile adaptation */
  @media (max-width: 768px) {
      .report-preview {
          flex-direction: column;
          gap: 16px;
      }
      
      .preview-item {
          max-width: 100%;
      }
  }

  /* JSON Viewer Tip Styling */
  .json-viewer-tip {
      margin: 24px 0;
      padding: 16px 20px;
      background: linear-gradient(135deg, #f0fffe 0%, #f8fafc 100%);
      border-left: 4px solid #0D9488;
      border-radius: 8px;
      display: flex;
      gap: 16px;
      align-items: flex-start;
      box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
      transition: all 0.3s ease;
  }

  .json-viewer-tip:hover {
      box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
      transform: translateY(-2px);
  }

  .json-viewer-tip .tip-icon {
      font-size: 24px;
      line-height: 1;
      flex-shrink: 0;
      margin-top: 2px;
  }

  .json-viewer-tip .tip-content {
      flex: 1;
  }

  .json-viewer-tip .tip-title {
      margin: 0 0 8px 0;
      font-weight: 600;
      color: #0f172a;
      font-size: 15px;
      line-height: 1.4;
  }

  .json-viewer-tip .tip-text {
      margin: 0;
      color: #475569;
      font-size: 14px;
      line-height: 1.6;
  }

  .json-viewer-tip .tip-text a {
      color: #0D9488;
      font-weight: 600;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s ease;
  }

  .json-viewer-tip .tip-text a:hover {
      border-bottom-color: #0D9488;
  }

  /* Mobile adaptation for JSON tip */
  @media (max-width: 768px) {
      .json-viewer-tip {
          flex-direction: column;
          gap: 12px;
          padding: 16px;
      }

      .json-viewer-tip .tip-icon {
          font-size: 20px;
      }

      .json-viewer-tip .tip-title {
          font-size: 14px;
      }

      .json-viewer-tip .tip-text {
          font-size: 13px;
      }
  }
  
  