/* ==========================================================================
   U&Me — Design Tokens & Base Styles
   ========================================================================== */

:root {
    /* Brand */
    --color-primary: #8B3FE0;
    --color-primary-hover: #7A30CE;
    --color-primary-soft: rgba(139, 63, 224, 0.08);
    --color-secondary: #007276;
    --color-on-primary: #FFFFFF;

    /* Status (WCAG AA on light surfaces) */
    --color-success: #137333;
    --color-success-bg: #E6F4EA;
    --color-warning: #B45309;
    --color-warning-bg: #FEF3C7;
    --color-danger: #B91C1C;
    --color-danger-bg: #FEE2E2;
    --color-info: #1F6FBE;
    --color-info-bg: #DBEAFE;

    /* Surfaces */
    --color-surface: #FFFFFF;
    --color-surface-alt: #F9FAFB;
    --color-border: #E5E7EB;
    --color-border-soft: #F0F0F0;

    /* Text — darkened for AA contrast */
    --color-text: #1A2C40;
    --color-text-muted: #475569;
    --color-text-faint: #6B7280;

    /* Tinted backgrounds (kept) */
    --bg-cream: #FDF1EC;
    --bg-lavender: #F4F1FD;
    --bg-peach: #FFF0ED;
    --bg-yellow: #FEF7E6;
    --bg-light-blue: #E6F7F9;
    --bg-white: #FFFFFF;

    /* Legacy aliases — kept for backwards-compat with existing markup */
    --primary-color: var(--color-primary);
    --brand-blue: var(--color-primary);
    --brand-blue-hover: var(--color-primary-hover);
    --brand-teal: var(--color-secondary);
    --text-navy: var(--color-text);
    --text-grey: var(--color-text-muted);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Open Sans', sans-serif;

    /* Layout */
    --container-width: 1100px;
    --gutter: 1.25rem;
    --gutter-lg: 2rem;
    --border-radius-card: 16px;
    --border-radius-btn: 100px;

    /* Spacing scale */
    --space-section-y: clamp(3rem, 6vw, 6rem);

    /* Header height — used for body offset & scroll-padding */
    --header-h: 64px;

    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-h);
    overflow-x: hidden;
    background: var(--color-surface);
}

/* Fluid Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Skip link — visible only when focused */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-primary);
    color: var(--color-on-primary);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   Focus styles — WCAG 2.4.7
   ========================================================================== */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline-color: var(--color-primary);
    outline-offset: 4px;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .feature-card:hover,
    .template-card:hover,
    .feature-box:hover,
    .feature-item:hover,
    .vendor-item:hover,
    .task-item:hover,
    .feature-box-lg:hover,
    .export-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--gutter-lg);
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-surface);
    transition: box-shadow 0.3s ease;
    padding: 0.65rem 0;
    height: var(--header-h);
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
    padding: 0 var(--gutter);
}

@media (min-width: 768px) {
    .header-inner {
        padding: 0 var(--gutter-lg);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

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

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.2rem;
    color: var(--color-text);
}

.desktop-nav {
    display: none;
}

.header-actions {
    display: none;
}

/* Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
    position: relative;
    z-index: 1001;
    border-radius: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    margin: 2.5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

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

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

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

/* Active nav indicator */
.desktop-nav a[aria-current="page"],
.mobile-menu nav a[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 700;
    position: relative;
}

.desktop-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85%, 360px);
    height: 100dvh;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 999;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 1.5rem;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

/* Close button inside drawer */
.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-menu-close:hover {
    background: var(--color-surface-alt);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 0;
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border-soft);
}

.mobile-menu hr {
    margin: 1.25rem 0;
    border: none;
    border-top: 1px solid var(--color-border-soft);
}

.mobile-menu .btn-text,
.mobile-menu .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    margin-bottom: 0.5rem;
    border-bottom: none;
}

/* Body scroll lock helper */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    border: none;
    text-align: center;
    line-height: 1.2;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    box-shadow: 0 4px 10px rgba(139, 63, 224, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 63, 224, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    min-height: 44px;
    padding: 10px 22px;
}

.btn-secondary:hover {
    background-color: var(--color-primary-soft);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    padding: 0 15px;
    color: var(--color-text);
}

.btn-text:hover {
    color: var(--color-primary);
}

.start-btn {
    font-size: 1.1rem;
    padding: 16px 32px;
    font-weight: 700;
}

.start-btn.large {
    font-size: 1.15rem;
    padding: 18px 38px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 480px;
    height: clamp(480px, 60vh, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content h1 {
    color: white;
    max-width: 800px;
    margin: 0 0 1.25rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-content .hero-sub {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    max-width: 700px;
}

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logo-strip {
    padding: 2.4rem 0;
    background: var(--color-surface);
    text-align: center;
    border-bottom: 1px solid var(--color-border-soft);
}

.logos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.logo-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: #ccc;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ==========================================================================
   Community + section sub
   ========================================================================== */
.community-section {
    padding: var(--space-section-y) 0;
    text-align: center;
}

.community-section h2 {
    max-width: 800px;
    margin: 0 auto;
}

.section-sub {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-section {
    background-color: var(--color-surface);
    padding: var(--space-section-y) 0;
}

.testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.testimonial-card {
    background: var(--bg-lavender);
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    gap: 1.5rem;
    align-items: center;
}

.testimonial-card .image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
}

.testimonial-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .content-wrapper {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.testimonial-card blockquote {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
    color: var(--color-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Templates
   ========================================================================== */
.template-section {
    padding: var(--space-section-y) 0;
    text-align: center;
}

.template-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.template-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 2rem;
}

.template-card {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: var(--bg-lavender);
    padding: 20px;
}

@media (hover: hover) {
    .template-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    }
}

.template-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.template-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Feature cards
   ========================================================================== */
.features-section {
    padding: var(--space-section-y) 0;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature-card {
    border-radius: var(--border-radius-card);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 240px;
}

@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
}

.card-icon {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.search-card {
    background: linear-gradient(135deg, var(--bg-lavender) 0%, #E8E2FC 100%);
    border: 1px solid rgba(139, 63, 224, 0.1);
}

.checklist-card {
    background: linear-gradient(135deg, var(--bg-peach) 0%, #FFE0DB 100%);
    border: 1px solid rgba(253, 76, 93, 0.1);
}

.budget-card {
    background: linear-gradient(135deg, var(--bg-yellow) 0%, #FDF0CA 100%);
    border: 1px solid rgba(255, 200, 0, 0.15);
}

.guest-card {
    background: linear-gradient(135deg, var(--bg-light-blue) 0%, #D0F0F5 100%);
    border: 1px solid rgba(0, 114, 118, 0.1);
}

/* ==========================================================================
   App section
   ========================================================================== */
.app-section {
    background-color: var(--color-secondary);
    padding: var(--space-section-y) 0 0;
    color: white;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-text h2,
.app-text p {
    color: white;
}

.app-text {
    margin-bottom: 2rem;
}

.app-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.store-badge {
    background: black;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
}

.app-image img {
    max-width: 400px;
    margin-bottom: -10px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
    padding: var(--space-section-y) 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
}

details {
    border-bottom: 1px solid var(--color-border-soft);
    padding: 1rem 0;
}

summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
}

details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

details p {
    margin-top: 1rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Pre-footer
   ========================================================================== */
.pre-footer {
    padding: var(--space-section-y) 0;
    background: transparent;
}

.pre-footer .container {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 130%);
    border-radius: 32px;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    color: white;
}

.pre-footer h2 {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: none;
}

.pre-footer p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.pre-footer .btn-primary {
    background: white;
    color: var(--color-primary);
    padding: 16px 36px;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.pre-footer .btn-primary:hover {
    background: #fff;
    color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-surface-alt);
    padding: var(--space-section-y) 0 2rem;
    color: var(--color-text-muted);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.col a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-underline-offset: 3px;
}

.col a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border-soft);
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   AI chat spotlight
   ========================================================================== */
.ai-section {
    padding: var(--space-section-y) 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
}

.ai-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.ai-content {
    text-align: center;
    max-width: 600px;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(139, 63, 224, 0.25);
}

.ai-content h2 {
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--color-text), var(--color-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ai-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.chat-interface {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    width: 100%;
    max-width: min(380px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-interface.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 16px;
    max-width: 85%;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.chat-interface.visible .chat-bubble {
    opacity: 1;
    transform: translateY(0);
}

.user-message {
    background-color: var(--color-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(139, 63, 224, 0.2);
}

.ai-message {
    background-color: var(--bg-lavender);
    color: var(--color-text);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ai-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FF6B6B, var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.chat-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-attachment::before {
    content: '📄';
    font-size: 1.2rem;
}

.chat-attachment span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #ccc;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

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

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* ==========================================================================
   Sub-page shared primitives — used by tasks/budget/guests/website/pres/seating
   ========================================================================== */

/* Sub-page hero (shared shell) */
.subpage-hero {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3rem);
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    width: clamp(280px, 40vw, 500px);
    height: clamp(280px, 40vw, 500px);
    border-radius: 50%;
    z-index: 0;
}

/* ==========================================================================
   Status pills / badges — accessible contrast
   ========================================================================== */
.status-badge,
.status-pill,
.v-status,
.tag {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 100px;
    padding: 4px 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.status-paid,
.status-accepted,
.status-signed {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-due,
.status-pending,
.status-wait {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.status-declined {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.status-app {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.tag-venue {
    background: var(--bg-peach);
    color: var(--color-danger);
}

.tag-high {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.tag-music {
    background: var(--bg-light-blue);
    color: var(--color-secondary);
}

/* ==========================================================================
   Tablet — 768px
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --header-h: 72px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-cols {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonial-card {
        flex-direction: row;
        padding: 2rem;
        gap: 2rem;
        align-items: center;
    }

    .testimonial-card .image-wrapper {
        width: 240px;
        height: 240px;
        flex-shrink: 0;
    }

    .testimonial-card .content-wrapper {
        flex: 1;
        text-align: left;
    }

    .testimonial-card blockquote {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .testimonial-card.reverse {
        flex-direction: row-reverse;
    }

    /* Sub-page hero — 2-col layout starts here */
    .budget-hero-content,
    .guests-hero-content,
    .tasks-hero-content,
    .website-hero-content,
    .pres-hero-content,
    .seating-hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left !important;
    }

    .budget-hero-content .hero-actions,
    .guests-hero-content .hero-actions,
    .tasks-hero-content .hero-actions,
    .website-hero-content .hero-actions,
    .pres-hero-content .hero-actions,
    .seating-hero-content .hero-actions {
        justify-content: flex-start;
    }

    /* Sub-page feature & process grids — 2-col on tablet */
    .feature-grid,
    .process-grid,
    .rsvp-grid,
    .seating-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .alert-cards {
        gap: 1rem;
    }

    .alert-card {
        flex: 1 1 280px;
    }
}

/* ==========================================================================
   Desktop — 1024px
   ========================================================================== */
@media (min-width: 1024px) {
    :root {
        --header-h: 80px;
    }

    .desktop-nav {
        display: flex;
        gap: 25px;
        align-items: center;
        height: 100%;
    }

    .desktop-nav a {
        display: inline-flex;
        align-items: center;
        font-weight: 600;
        font-size: 0.95rem;
        height: 100%;
        padding: 0 4px;
        position: relative;
    }

    .desktop-nav a:hover {
        color: var(--color-primary);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .header-inner {
        justify-content: flex-start;
        gap: 40px;
    }

    .menu-toggle {
        display: none;
    }

    /* Hero */
    .hero-section {
        height: 70vh;
        min-height: 520px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background-color: var(--bg-lavender);
        text-align: left;
        overflow: hidden;
    }

    .hero-bg {
        position: relative;
        width: 55%;
        height: 100%;
        order: 2;
        z-index: 1;
    }

    .hero-bg .overlay {
        display: none;
    }

    .container.hero-content {
        width: 45%;
        order: 1;
        padding: 0 0 0 2rem;
        margin: 0;
        max-width: none;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content h1 {
        color: var(--color-text);
        text-shadow: none;
        margin-left: 0;
    }

    .hero-content .hero-sub {
        color: var(--color-text-muted);
        text-shadow: none;
        max-width: 90%;
        margin-left: 0;
    }

    /* Testimonials grid */
    .testimonial-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }

    .testimonial-card {
        flex-direction: column;
        padding: 2.5rem;
        align-items: center;
        height: 100%;
        text-align: center;
    }

    .testimonial-card.reverse {
        flex-direction: column;
    }

    .testimonial-card .image-wrapper {
        width: 100%;
        height: 280px;
    }

    .testimonial-card .content-wrapper {
        text-align: center;
        align-items: center;
    }

    /* Grids */
    .template-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* App section */
    .app-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        max-width: 900px;
    }

    .app-text {
        max-width: 450px;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .app-badges {
        justify-content: flex-start;
    }

    /* AI chat */
    .ai-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6rem;
    }

    .ai-visual {
        flex: 1;
        order: 2;
        display: flex;
        justify-content: center;
    }

    .ai-content {
        flex: 1;
        order: 1;
        text-align: left;
        max-width: 500px;
    }

    .chat-interface {
        margin: 0;
        transform: translateX(50px);
        opacity: 0;
    }

    .chat-interface.visible {
        transform: translateX(0);
        opacity: 1;
    }

    /* Sub-page grids — 3-col / 4-col on desktop */
    .feature-grid,
    .seating-features-grid,
    .rsvp-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .process-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* Compact section paddings */
    .community-section {
        padding: 4rem 0;
    }

    .testimonial-section {
        padding: 5rem 0;
    }
}

/* ==========================================================================
   Print — basic clean rendering for guest list / seating exports
   ========================================================================== */
@media print {

    .site-header,
    .mobile-menu,
    .pre-footer,
    .site-footer,
    .menu-toggle,
    .skip-link {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ==========================================================================
   Breadcrumbs (used on inner pages — paired with BreadcrumbList JSON-LD)
   ========================================================================== */
.breadcrumbs {
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border-soft);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
}

.breadcrumbs li + li::before {
    content: "›";
    margin-right: 0.5rem;
    color: var(--color-text-faint);
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

