/* css/book-demo.css */

/* Page Layout */
.book-demo-page {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-4xl);
    background:
        radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.05) 0%, transparent 30%);
}

/* Header Section */
.demo-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    position: relative;
}

.demo-header-cta {
    margin-top: var(--space-lg);
}

.demo-header h1 {
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
    /* Prevent descenders from being clipped */
}

.demo-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Qualifier Section - "Is Brief right for you?" */
.qualifier-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient border effect via pseudo-element */
.qualifier-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(214, 211, 209, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.qualifier-section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-2xl);
    letter-spacing: -0.01em;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-lg);
    color: var(--color-text);
    padding: var(--space-md);
    border-radius: 0.75rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    cursor: pointer;
    /* INTERACTIVE */
    user-select: none;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
}

/* Hide native checkbox */
.checklist-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-ui {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--color-accent);
    /* Default color, might be dimmed initially */
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.1);
    transition: all 0.2s ease;
    opacity: 0.5;
    /* Dimmed by default */
    filter: grayscale(1);
}

.check-ui svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    opacity: 0;
    /* Hidden check by default */
    transform: scale(0.8);
    transition: all 0.2s ease;
}

/* Checked state */
.checklist-checkbox:checked+.check-ui {
    opacity: 1;
    filter: grayscale(0);
    background: var(--color-accent);
    color: white;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.checklist-checkbox:checked+.check-ui svg {
    opacity: 1;
    transform: scale(1);
}

.checklist-text {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.checklist-checkbox:checked~.checklist-text {
    opacity: 1;
    font-weight: var(--font-weight-medium);
}


/* Timeline Section - "What happens on the call" */
.timeline-section {
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.timeline-section h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    letter-spacing: -0.01em;
}

.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding-left: var(--space-2xl);
    counter-reset: timeline-counter;
}

/* Gradient line removed as per user request */
/* .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary-light) 0%, rgba(30, 41, 59, 0.1) 100%);
    border-radius: 1px;
} */

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
    counter-increment: timeline-counter;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-2xl) - 1px);
    /* Align with line */
    top: 6px;
    /* Align nicer with larger text */
    width: 16px;
    height: 16px;
    background-color: var(--color-background);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.05);
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-marker {
    background-color: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(30, 41, 59, 0.1);
}

/* Flipped Hierarchy */
.timeline-time {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-xs);
    /* Smaller */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    /* Less prominent */
    margin-bottom: 2px;
    display: block;
}

.timeline-content {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    line-height: 1.5;
}

.timeline-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.3;
}

.timeline-content p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    margin: 0;
    line-height: 1.5;
    color: var(--color-text);
}

/* Social Proof Section */
.social-proof-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-4xl);
}

.social-proof-section h3 {
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xl);
}

.integration-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: var(--space-md);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.company-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* Testimonial Section */
.testimonial-section {
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
    text-align: center;
    padding: 0 var(--space-lg);
}

.testimonial-section blockquote {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin: 0 0 var(--space-xl) 0;
    line-height: 1.4;
    color: var(--color-text);
    position: relative;
}

.testimonial-section blockquote::before {
    content: '“';
    font-family: serif;
    font-size: 4rem;
    color: var(--color-primary-light);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: -2rem;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    font-size: var(--font-size-lg);
}

.author-role {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Video Section */
.video-section {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto var(--space-4xl);
}

.video-section h2 {
    font-size: var(--font-size-2xl);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Border definition */
    background: #000;
}

/* Override/Adjust hero-image-wrapper for this context if needed */
.video-container .hero-image-wrapper {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
}

/* Calendly Section */
.calendly-section {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    /* Optional: add a subtle containment shadow */
    box-shadow: var(--shadow-large);
    background: #fff;
    position: relative;
    /* For fallback centering if needed */
}

.calendly-header {
    text-align: center;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-2xl);
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calendly-inline-widget,
#calendly-container {
    min-width: 320px;
    height: 700px;
}

.calendly-reload {
    text-align: center;
    margin: var(--space-md) 0 var(--space-xl);
}

.calendly-reload-text {
    margin-right: 0.35rem;
}

.calendly-reload-link {
    text-decoration: underline;
}

.calendly-noscript,
.calendly-fallback {
    text-align: center;
    padding: 2rem;
}

.calendly-fallback {
    display: none;
}

.secondary-cta-section {
    text-align: center;
    padding-top: calc(var(--space-xl) * 4);
}

/* Abbreviation styling */
abbr[title] {
    text-decoration: none;
    cursor: help;
}

/* Testimonial adjustments for blockquote p */
.testimonial-section blockquote p {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin: 0 0 var(--space-xl) 0;
    line-height: 1.4;
    color: var(--color-text);
}

.testimonial-section blockquote {
    margin: 0;
    position: relative;
}

.testimonial-author {
    margin-top: var(--space-xl);
}
