:root {
    --punch-blue: #3A86FF;
    --lime-green: #A9FF68;
    --slate: #1C1C1E;
    --off-white: #F9F9F9;
    --white: #FFFFFF;
    --grey: #8E8E93;
    --light-grey: #e0e0e0;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--slate);
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--slate);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

p.subtitle {
    font-size: 1.125rem;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto 2rem;
}

a {
    color: var(--punch-blue);
    text-decoration: none;
}

section {
    padding: 80px 0;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons & Links --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.1);
}

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

.btn-primary:hover {
    background-color: #2c71e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(58, 134, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--slate);
    border-color: var(--light-grey);
}

.btn-secondary:hover {
    background-color: var(--white);
    border-color: var(--slate);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.1);
}

.link-below {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* --- Header --- */
.main-header {
    background-color: rgba(249, 249, 249, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.main-header.scrolled {
    border-color: var(--light-grey);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--slate);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--punch-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1011;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: var(--slate);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--off-white);
    z-index: 1010;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--slate);
}

body.no-scroll {
    overflow: hidden;
}

.hamburger-btn.is-active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    background: linear-gradient(170deg, var(--off-white) 0%, #EDF2FF 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-content .subtitle {
    margin: 1.5rem 0;
    max-width: none;
    text-align: left;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    min-height: 450px;
}

.message-flow-container {
    width: 320px;
    height: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    transform: rotateX(10deg) rotateY(-15deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.hero-layout:hover .message-flow-container {
    transform: rotateX(5deg) rotateY(-5deg) scale(1.02);
}

.message-flow-container .message {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--grey);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
    opacity: 0;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- Phone Mockup --- */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
}

.phone-frame-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.phone-screen {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background-color: #F2F2F7;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages,
.phone-messages {
    padding: 20px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.phone-messages::-webkit-scrollbar {
    display: none;
}

.message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 75%;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.5s ease-out;
    word-wrap: break-word;
}

.message.sent {
    background-color: var(--punch-blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.received {
    background-color: #E5E5EA;
    color: var(--slate);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.received-img {
    background-color: transparent;
    padding: 0;
    max-width: 85%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message img.punchcard-image {
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
}

.message.typing-indicator {
    background-color: #E5E5EA;
    color: var(--slate);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    padding: 10px 12px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: var(--grey);
    border-radius: 50%;
    display: inline-block;
    animation: bob 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes bob {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
    60% { transform: scale(1.0); }
}

/* --- How It Works --- */
.how-it-works-section {
    background-color: var(--white);
}

.steps-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    background-color: var(--off-white);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.step-card h3 {
    margin-bottom: 1rem;
}

.step-visual {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step-visual-or {
    font-weight: 500;
    color: var(--grey);
    font-size: 0.9rem;
}

.step-visual .message {
    max-width: fit-content;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.step-visual .message .icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-visual .message .icon-text svg {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .steps-layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Who It's For --- */
.who-its-for-section {
    padding-bottom: 40px;
}

.industry-tiles-swiper {
    width: 100%;
    margin-top: 3rem;
    cursor: grab;
}

.industry-tiles-swiper swiper-slide {
    width: 300px;
}

.tile {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    height: 100%;
}

.tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08);
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.tile:hover::before {
    transform: scale(1.05);
}

.tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.9) 100%);
    opacity: 1;
    transition: background 0.4s ease;
    z-index: 2;
}

.tile:hover::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.95) 100%);
}

.tile-content {
    position: relative;
    z-index: 3;
    transition: transform 0.4s ease;
    margin-top: auto;
}

.tile:hover .tile-content {
    transform: translateY(-10px);
}

.tile-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 7rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: background-color 0.4s ease;
}

.tile-icon img {
    width: 28px;
    height: 28px;
}

.tile:hover .tile-icon {
    background-color: rgba(255, 255, 255, 0.9);
}

.tile h3 {
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    font-size: 1.35rem;
    transition: color 0.4s ease;
}

.tile:hover h3 {
    color: var(--white);
}

.tile .tile-example {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.tile:hover .tile-example {
    color: rgba(255, 255, 255, 1);
}

/* --- Live Demo Section --- */
.live-demo-section {
    background-color: var(--white);
}

.live-demo-section .subtitle {
    margin-bottom: 3rem;
}

.demo-simulator {
    display: flex;
    justify-content: center;
}

.interactive-chat-container {
    width: 100%;
    max-width: 380px;
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 500px;
}

.chat-messages {
    background-color: #F2F2F7;
}

.chat-input-area {
    background-color: #f9f9f9;
    padding: 12px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--light-grey);
    align-items: center;
}

#demo-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    background-color: var(--white);
}

#demo-input:focus {
    outline: none;
    border-color: var(--punch-blue);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

#demo-send-btn {
    background-color: var(--punch-blue);
    color: white;
    border: none;
    height: 44px;
    width: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#demo-send-btn svg {
    display: block;
}

#demo-send-btn:hover {
    background-color: #2c71e0;
    transform: scale(1.05);
}

#demo-send-btn:disabled {
    background-color: var(--grey);
    cursor: not-allowed;
    transform: scale(1);
}

.cta-below {
    display: block;
    text-align: center;
    margin-top: 3rem;
}

/* --- Why It Works Section --- */
.why-it-works-section {
    background-color: var(--off-white);
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-content ul {
    list-style: none;
    padding-left: 0;
}

.why-content li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.why-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--punch-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.why-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

#punchcard-interactive-container {
    position: relative;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
    max-width: 450px;
}

.punchcard-base {
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

.punchcard-stamps {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5.5%; /* Approximate gap based on punchcard-base.png */
    padding: 23.5% 6% 12%; /* Approximate padding based on punchcard-base.png */
}

.punchcard-stamps .stamp {
    width: 100%;
    height: 100%;
    background-image: url('/punch-stamp.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(0) rotate(-15deg);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.punchcard-stamps .stamp.is-visible {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* --- Check-in Section --- */
.check-in-section {
    background-color: var(--white);
    padding-bottom: 40px;
}

.check-in-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .check-in-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .check-in-visual {
        order: 2; /* Move image to the right on desktop */
    }
    .check-in-content {
        order: 1;
    }
}

.check-in-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.check-in-visual {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    margin: 1rem auto;
    max-width: 450px;
}

.check-in-visual img {
    display: block;
    width: 100%;
}

.safeguards-info {
    margin-top: 2rem;
    background: var(--off-white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--light-grey);
}

.safeguards-info h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.safeguards-info ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.safeguards-info li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.75rem;
}

.safeguards-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--punch-blue);
    font-weight: bold;
}

.safeguards-info .result-text {
    margin: 1.5rem 0 0;
    color: var(--grey);
}

.check-in-content p {
    font-size: 1.05rem;
    color: var(--grey);
}

.safeguards-section {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
}

.safeguards-section h3 {
    text-align: center;
}

.safeguards-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: inline-block;
    text-align: left;
}

.safeguards-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.75rem;
}

.safeguards-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--punch-blue);
    font-weight: bold;
}

.safeguards-section > p {
    font-style: italic;
    color: var(--grey);
}

/* --- Features Section --- */
.features-section {
    background-color: var(--off-white);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--light-grey);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background-color: var(--punch-blue);
    color: var(--white);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

/* --- Pricing Section --- */
.pricing-section {
    background-color: var(--white);
}

.pricing-section .subtitle {
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-note {
    text-align: center;
    color: var(--grey);
    margin-bottom: 4rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.price-card {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--light-grey);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.07);
}

.price-card.featured {
    background: var(--white);
    border-color: var(--punch-blue);
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px -10px rgba(58, 134, 255, 0.2);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lime-green);
    color: var(--slate);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.price-card h3 {
    font-size: 1.25rem;
}

.price-card-description {
    color: var(--grey);
    font-size: 0.95rem;
    min-height: 54px;
    margin: 0.5rem 0 1rem;
}

.price {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 1rem 0;
}

.price sup {
    font-size: 1.5rem;
    font-weight: 500;
    top: -1em;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--grey);
}

.includes-plus {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--slate);
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.price-card li {
    margin-bottom: 1rem;
    padding-left: 24px;
    position: relative;
}

.price-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--punch-blue);
}

.price-card .btn {
    width: 100%;
    margin-top: 1rem;
}

.enterprise-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-grey);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.enterprise-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.enterprise-contact p {
    color: var(--grey);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.enterprise-contact p a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--light-grey);
    transition: color 0.2s, text-decoration-color 0.2s;
}

.enterprise-contact p a:hover {
    color: var(--punch-blue);
    text-decoration-color: var(--punch-blue);
}

/* --- Onboarding Form --- */
.onboarding-section {
    background-color: var(--white);
}

.onboarding-section .subtitle {
    max-width: 500px;
    margin-bottom: 3rem;
}

.onboarding-layout {
    display: flex;
    justify-content: center;
}

.onboarding-form {
    width: 100%;
    max-width: 600px;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.form-group.hidden {
    display: none;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--punch-blue);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.onboarding-form .btn {
    justify-self: start;
    margin-top: 1rem;
}

.onboarding-preview .phone-screen {
    justify-content: center;
}

.onboarding-preview {
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.message-preview-container {
    background-color: #F2F2F7;
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    padding: 20px;
    height: 500px;
    position: relative;
    border: 1px solid var(--light-grey);
}

.message-preview-container .chat-messages {
    background: transparent;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

.message-preview-container .chat-messages::-webkit-scrollbar {
    display: none;
}

.preview-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--grey);
}

/* --- FAQ Section --- */
.faq-section {
    background: var(--white);
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--off-white);
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.faq-item.active {
    background-color: var(--white);
    border-color: var(--punch-blue);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
}

.faq-question:hover {
    color: var(--punch-blue);
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon {
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--grey);
}

.faq-answer p {
    margin: 0;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if answers are longer */
}

/* --- Integrations --- */
.integrations-section {
    display: none;
}

/* --- Footer CTA --- */
.main-footer-cta {
    background-color: var(--slate);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.main-footer-cta h2 {
    color: var(--white);
}

.main-footer-cta p {
    color: var(--grey);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-footer-cta .btn-secondary {
    color: var(--white);
    border-color: var(--grey);
}

.main-footer-cta .btn-secondary:hover {
    background-color: var(--white);
    color: var(--slate);
    border-color: var(--white);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .hero-layout, .timeline-layout, .why-layout, .onboarding-layout, .check-in-layout {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content .subtitle {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 2rem;
        grid-row: 1; /* Move phone to top on mobile */
    }
    .steps-layout {
        grid-template-columns: 1fr;
    }
    .onboarding-preview {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .header-actions .desktop-only {
        display: none;
    }
}