/* ========================================
   Palora Landing Page — v3.0.0
   Oxford Magazine Editorial Redesign
   ======================================== */

/* --- Reset & Custom Properties --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: hsl(220, 60%, 22%);
    --color-primary-light: hsl(220, 40%, 95%);
    --color-accent: hsl(40, 65%, 50%);
    --color-accent-light: hsl(40, 60%, 92%);
    --color-success: hsl(152, 40%, 40%);
    --color-warm: hsl(28, 60%, 50%);
    --color-bg: hsl(40, 30%, 98%);
    --color-bg-alt: hsl(40, 20%, 95%);
    --color-fg: hsl(220, 30%, 15%);
    --color-fg-muted: hsl(220, 15%, 45%);
    --color-white: #fff;
    --color-border: hsl(40, 10%, 85%);

    --font-family: 'Overpass', 'HK Grotesk', system-ui, sans-serif;
    --font-heading: 'Overpass', 'HK Grotesk', system-ui, sans-serif;
    --radius: 0.375rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --max-width: 1200px;
    --nav-height: 64px;

    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-glow: none;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.6s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

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

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

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--color-primary);
    color: var(--color-white);
    transition: background 0.2s, transform 0.15s, opacity 0.2s;
    white-space: nowrap;
    position: relative;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-accent-light);
    opacity: 1;
    transform: translateY(-1px);
}

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

.btn--white:hover {
    background: hsl(40, 20%, 95%);
    opacity: 1;
    transform: translateY(-1px);
}

.btn--sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

/* --- Nav --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: hsla(40, 30%, 98%, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-height);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo img {
    height: 36px;
    width: auto;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-fg);
    padding: 0.5rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__links a:not(.btn) {
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__links a:not(.btn):hover {
    color: var(--color-primary);
}

/* --- Hero --- */
.hero {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: none;
    padding: 0;
}

.hero__content {
    animation: heroFadeIn 0.8s var(--ease-out) both;
    padding: 5rem 3rem 5rem calc(max((100vw - var(--max-width)) / 2, 1.5rem));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Eyebrow — editorial thin uppercase */
.hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-accent);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

/* Highlighted phrase — solid navy, no gradient */
.text-gradient {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-fg-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Trust badge */
.hero__trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero__avatars {
    display: flex;
}

.hero__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--color-bg);
    margin-left: -8px;
}

.hero__avatar:first-child {
    margin-left: 0;
}

.hero__trust-text {
    font-size: 0.875rem;
    color: var(--color-fg-muted);
}

/* Hero screenshot — fills right half edge-to-edge */
.hero__screenshot {
    animation: heroMockupIn 1s var(--ease-out) 0.2s both;
    overflow: hidden;
    background: var(--color-fg);
}

.hero__screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* Hero load animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroMockupIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Social Proof Bar --- */
.proof-bar {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
}

.proof-bar__inner {
    display: flex;
    justify-content: center;
    gap: 0;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2.5rem;
    border-right: 1px solid var(--color-border);
}

.proof-stat:last-child {
    border-right: none;
}

.proof-stat__number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.proof-stat__label {
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
    font-weight: 500;
    margin-top: 0.125rem;
}

/* --- Section --- */
.section {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid var(--color-border);
}

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

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

.section--dark .section__title {
    color: var(--color-white);
}

.section--dark .section__title::after {
    background: var(--color-accent);
}

.section--dark .section__subtitle {
    color: hsla(0, 0%, 100%, 0.7);
}

.section--dark .step__number {
    background: var(--color-white);
    color: var(--color-primary);
}

.section--dark .step__title {
    color: var(--color-white);
}

.section--dark .step__text {
    color: hsla(0, 0%, 100%, 0.7);
}

.section--dark .step__connector {
    background: repeating-linear-gradient(
        90deg,
        hsla(0, 0%, 100%, 0.3) 0,
        hsla(0, 0%, 100%, 0.3) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 1;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 1rem;
}

/* Gold underline accent on section titles */
.section__title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    background: var(--color-accent);
    margin: 0.75rem auto 0;
}

.section__subtitle {
    text-align: center;
    color: var(--color-fg-muted);
    font-size: 1.0625rem;
    max-width: 540px;
    margin: 0 auto 3rem;
}

/* --- Features Showcase (carousel + text, half-and-half) --- */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--color-border);
}

.showcase__carousel {
    overflow: hidden;
    min-height: 500px;
}

.carousel-section {
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: rotate(-6deg) scale(1.3);
    transform-origin: center center;
    height: 100%;
    justify-content: center;
}

.showcase__text {
    padding: 5rem 3rem 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--color-border);
}

.showcase__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.showcase__desc {
    color: var(--color-fg-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.showcase__list {
    list-style: none;
    margin-bottom: 2rem;
}

.showcase__list li {
    padding: 0.4rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--color-fg-muted);
}

.showcase__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
}

.carousel {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.carousel__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: carousel-scroll 45s linear infinite;
}

.carousel--reverse .carousel__track {
    animation: carousel-scroll-reverse 50s linear infinite;
}

.carousel__track img {
    height: 280px;
    width: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes carousel-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* --- Subjects & Exam Boards --- */
.subjects {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0;
}

.subjects__header {
    text-align: center;
    margin-bottom: 4rem;
}

.subjects__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.subjects__subtitle {
    font-size: 1.125rem;
    color: hsla(0, 0%, 100%, 0.7);
    max-width: 480px;
    margin: 0 auto;
}

.subjects__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.subjects__logos img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* --- Steps (How It Works) --- */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 280px;
}

.step__connector {
    flex: 0 0 60px;
    height: 2px;
    margin-top: 28px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-border) 0,
        var(--color-border) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.6;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.step__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.step__text {
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s var(--ease-out);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-2px);
}

/* Decorative open-quote mark */
.testimonial::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.4;
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    pointer-events: none;
}

.testimonial__stars {
    color: var(--color-accent);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.testimonial__text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: var(--color-fg);
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.testimonial__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial__author strong {
    color: var(--color-fg);
    display: block;
}

.testimonial__role {
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Solid navy border on featured card */
.pricing-card--featured {
    border: 2px solid var(--color-primary);
}

.pricing-card__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-card__name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.pricing-card__price {
    margin-bottom: 1.5rem;
}

.pricing-card__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.pricing-card__period {
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
}

.pricing-card__features {
    flex: 1;
    margin-bottom: 2rem;
}

.pricing-card__features li {
    padding: 0.4rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--color-fg-muted);
}

/* SVG checkmark via mask */
.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* --- FAQ Accordion --- */
.faq {
    max-width: 720px;
    margin: 0 auto;
}

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    background: var(--color-white);
    overflow: hidden;
}

.faq__question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: color 0.2s;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::marker {
    display: none;
    content: '';
}

.faq__question::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 1rem;
    background: var(--color-fg-muted);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform 0.3s var(--ease-out);
}

.faq__item[open] .faq__question::after {
    transform: rotate(180deg);
}

.faq__item[open] .faq__question {
    color: var(--color-primary);
}

.faq__answer {
    padding: 0 1.5rem 1.25rem;
}

.faq__answer p {
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--color-primary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.cta-banner__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    background: var(--color-fg);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer__logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer__tagline {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--color-white);
}

.footer__copy {
    width: 100%;
    text-align: center;
    font-size: 0.8125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.legal-page__inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal-page__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.legal-page__subtitle {
    font-size: 1.125rem;
    color: var(--color-fg-muted);
    margin-bottom: 3rem;
}

.legal-page__date {
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.legal-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.legal-content li {
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 0.25rem;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.contact-card .card__icon {
    margin: 0 auto 1.25rem;
}

.contact-card .card__text a {
    color: var(--color-primary);
    font-weight: 500;
}

/* ========================================
   Scroll Animations
   ======================================== */

/* CSS animation-timeline (Chrome 115+, Safari 18+) */
@supports (animation-timeline: view()) {
    .animate-on-scroll {
        animation: fadeUp var(--duration) var(--ease-out) both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }
}

/* JS fallback: IntersectionObserver adds .is-visible */
@supports not (animation-timeline: view()) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
    }

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

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__content,
    .hero__screenshot {
        animation: none !important;
    }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav__links--open {
        display: flex;
    }

    /* Hero responsive */
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        padding: 2.5rem 1.5rem;
    }

    .hero__screenshot {
        order: -1;
        max-height: 280px;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    /* Proof bar */
    .proof-bar__inner {
        flex-wrap: wrap;
    }

    .proof-stat {
        flex: 1 1 40%;
        padding: 1rem;
        border-right: none;
    }

    .proof-stat:nth-child(1),
    .proof-stat:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }

    .proof-stat:nth-child(odd) {
        border-right: 1px solid var(--color-border);
    }

    .section {
        padding: 4rem 0;
    }

    /* Showcase — stack on mobile */
    .showcase {
        grid-template-columns: 1fr;
    }

    .showcase__carousel {
        min-height: 250px;
    }

    .carousel-section {
        transform: rotate(-6deg) scale(1.2);
    }

    .showcase__text {
        padding: 2.5rem 1.5rem;
        border-left: none;
        border-top: 1px solid var(--color-border);
    }

    .carousel-section {
        gap: 1rem;
        padding: 2rem 0;
    }

    .carousel__track {
        gap: 1rem;
    }

    .carousel__track img {
        height: 140px;
    }

    /* Hero buttons stack on small screens */
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Steps — vertical layout */
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step__connector {
        width: 2px;
        height: 40px;
        flex: 0 0 40px;
        margin-top: 0;
        background: repeating-linear-gradient(
            180deg,
            var(--color-border) 0,
            var(--color-border) 6px,
            transparent 6px,
            transparent 12px
        );
    }

    .section--dark .step__connector {
        background: repeating-linear-gradient(
            180deg,
            hsla(0, 0%, 100%, 0.3) 0,
            hsla(0, 0%, 100%, 0.3) 6px,
            transparent 6px,
            transparent 12px
        );
    }

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

    .testimonials-grid .testimonial:last-child {
        max-width: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer__logo {
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
