/* Reset and Variables */
:root {
    --bg-light: #f8fafc;
    --bg-light-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    
    /* Warm brand color. Darkened from the original #ea580c — at full
       brightness it didn't hit WCAG AA (4.5:1) as text/link/button-label
       color, which is how it's actually used here (.btn-secondary text,
       nav-link hover, every legal-page heading/inline link). Same audit/fix
       applied to ChurchMatters.Admin's copy of this palette
       (src/ChurchMatters.Admin/wwwroot/css/app.css) and the tenant-site
       ColorSchemeCatalog this session. The blue --secondary-color this site
       used to carry was dropped: it only ever styled the legal pages'
       headings/links, inconsistently with every other accent on the site
       (nav, buttons, badge, footer, form focus ring, hero) using orange. */
    --primary-color: #c64a0a; /* Warm vibrant orange */
    --primary-hover: #9f3b08;
    --accent-color: #eab308; /* Golden yellow */
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.w-100 { width: 100%; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 0.75rem;
}

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

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

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #fff7ed;
}

/* Translucent sticky navbar — the one glass/blur treatment kept on this page;
   everything that used to share the old .glass-card (feature cards, pricing
   cards, the about-visual box, the contact form) now gets its own flat,
   differentiated surface below instead of one blurred/hover-lifting card
   style applied to every unrelated piece of content on the page. */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar .brand img {
    height: 96px;
    width: auto;
    border-radius: 0.75rem;
}

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

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Mobile nav toggle (hamburger). Hidden above the 768px breakpoint, where
   .nav-links renders inline as before. See assets/nav.js for the toggle
   behavior. */
.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 14rem 0 10rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(rgba(10, 15, 24, 0.75), rgba(10, 15, 24, 0.95)), url('assets/church_banner.png') center/cover no-repeat;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

/* Targets the <i>Church Matters</i> wrapping the product-name pun in the
   hero heading (index.html) — was ".hero h1 span", which matched nothing
   since the markup has never used a <span> here, so this gradient never
   rendered. */
.hero h1 i {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-light-secondary));
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-light-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 74, 10, 0.08);
    color: var(--primary-color);
}

/* Line icons (Lucide): stroke-only, coloured by the parent's `color`. */
.feature-icon svg,
.about-visual .icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* Brand Colours Section — live mock of a tenant site, recoloured by assets/brand-demo.js */
.colours-section {
    padding: 6rem 0 7rem;
    background-color: var(--bg-light-secondary);
}

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

.colours-copy .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.colours-lead {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.colours-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.colours-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.colours-picker-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.colour-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-primary);
    font: 500 0.9rem var(--font-body);
    cursor: pointer;
    transition: border-color 150ms ease-in-out, background-color 150ms ease-in-out;
}

.colour-chip:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.colour-chip.active {
    border-color: var(--text-primary);
    background: var(--bg-light-secondary);
}

.colour-chip:focus-visible,
.colour-chip-custom:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.chip-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font: 700 0.85rem var(--font-heading);
}

.colour-chip-custom input[type="color"] {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.colour-chip-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.colour-chip-custom input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }
.colour-chip-custom input[type="color"]::-moz-color-swatch { border: none; border-radius: 50%; }

.colours-plans {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

/* The mock site. Defaults match the first sample chip so it looks right before JS runs. */
.site-mock {
    --m-primary: #1f6f8b;
    --m-on-primary: #ffffff;
    --m-accent: #e0a526;
    --m-on-accent: #1e293b;
    --m-tint: #f1f7f9;
    --m-link: #1f6f8b;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08), 0 20px 40px -12px rgb(0 0 0 / 0.15);
    font-family: var(--font-body);
}

.site-mock * {
    transition: background-color 250ms ease-out, color 250ms ease-out;
}

.mock-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0.8rem;
    background: #eef1f5;
    border-bottom: 1px solid var(--glass-border);
}

.mock-browser-bar > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd2db;
}

.mock-url {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem;
    background: var(--m-primary);
    color: var(--m-on-primary);
}

.mock-logo {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--m-on-primary);
    color: var(--m-primary);
    font: 800 0.9rem var(--font-heading);
}

.mock-name {
    font: 600 1rem var(--font-heading);
}

.mock-nav {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.9;
    white-space: nowrap;
}

.mock-body {
    padding: 1.25rem;
    background: var(--m-tint);
}

.mock-titlecard {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.2rem;
    height: 120px;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: var(--m-primary);
    color: var(--m-on-primary);
    border-bottom: 6px solid var(--m-accent);
}

.mock-titlecard small {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.mock-titlecard strong {
    font: 700 1.35rem var(--font-heading);
}

.mock-lines {
    display: grid;
    gap: 0.5rem;
    margin: 1.1rem 0;
}

.mock-lines span {
    height: 8px;
    border-radius: 4px;
    background: rgb(0 0 0 / 0.08);
}

.mock-lines span.short { width: 60%; }

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

.mock-btn {
    padding: 0.45rem 1rem;
    border-radius: 0.375rem;
    background: var(--m-accent);
    color: var(--m-on-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.mock-link {
    color: var(--m-link);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
}

.mock-footer {
    padding: 0.75rem 1.25rem;
    background: var(--m-primary);
    color: var(--m-on-primary);
    font-size: 0.75rem;
}

/* About Us Section */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

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

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-content .section-subtitle {
    text-align: left;
    max-width: 100%;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-content p.about-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-visual {
    padding: 3rem;
    text-align: center;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(198, 74, 10, 0.05) 0%, rgba(2, 120, 181, 0.05) 100%);
    border: 1px solid rgba(198, 74, 10, 0.1);
}

.about-visual .icon {
    margin: 0 auto 1.5rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 74, 10, 0.08);
    color: var(--primary-color);
}

.about-visual .icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.about-visual h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.about-visual p {
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
    padding: 8rem 0;
    background-color: var(--bg-light-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    position: relative;
    padding: 3rem 2rem;
    background: var(--bg-light-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
    background: rgba(198, 74, 10, 0.05);
    border-color: rgba(198, 74, 10, 0.3);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 2rem;
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

/* Normal text flow, not flex: in a flex row each <strong> and text run became its own
   column and wrapped separately. The tick hangs in the left padding, level with the first
   line, so wrapped lines align under the text. */
.pricing-features li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Not included on this plan: struck-through text with a muted cross, not a tick. */
.pricing-features li.excluded {
    text-decoration: line-through;
}

.pricing-features li.excluded::before {
    content: "✕";
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features li.inherits {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
    padding-bottom: 0.5rem;
}

.pricing-features li.inherits::before {
    content: "↳";
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-footnote {
    text-align: center;
    max-width: 700px;
    margin: 2.5rem auto 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Share on WhatsApp (pricing section and demo page). */
.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 2rem;
}

.share-row p {
    color: var(--text-secondary);
    margin: 0;
}

/* The church sites' "Share on WhatsApp" badge (Publisher: WhatsAppShareBadge + _base.css), copied
   with WhatsApp's fixed brand colours (WhatsAppBrand): official logo and wordmark, green on a
   white pill, so it reads the same on light and dark sections. */
.whatsapp-share {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0.4rem 1.1rem;
    background: #ffffff;
    color: #25d366;
    border: 2px solid #25d366;
    border-radius: 999px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out;
}
.whatsapp-share:hover { background: #eafbf1; border-color: #1da851; }
.whatsapp-share:focus-visible { outline: 2px solid #1da851; outline-offset: 2px; }
.whatsapp-share svg { flex: none; display: block; width: auto; }
.whatsapp-share-logo { height: 32px; margin-right: 0.5rem; }
.whatsapp-share-label { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.whatsapp-share-lead {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}
.whatsapp-share-wordmark { height: 16px; }

.pricing-features li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--bg-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-content .brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-content .brand img {
    height: 72px;
    width: auto;
    border-radius: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

/* Legal pages (Privacy Policy, Terms of Service, PAIA Manual) */
.legal-page {
    padding: 10rem 2rem 5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .legal-page { padding: 8rem 1rem 4rem; }
}

.legal-page .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.legal-page .updated-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-page h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page ul {
    margin: 0 0 1rem 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a:not(.whatsapp-share) {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-page .paia-downloads {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.legal-page .paia-downloads a {
    display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-light-secondary), var(--bg-light));
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-light-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2.5rem;
}

.contact-form .form-row {
    display: flex;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198, 74, 10, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Hidden from sighted users and keyboard/mouse interaction, but still present in the
   DOM (not display:none) so a scripted bot that skips display:none fields still fills it. */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-captcha {
    min-height: 65px;
}

.contact-status {
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle-btn {
        display: flex;
    }
    /* Collapsed by default; assets/nav.js toggles this class on click.
       Previously .nav-links was just `display: none` below this breakpoint
       with no way to reopen it — Features/About/Pricing and, critically,
       Login (which appears nowhere else on the site) were unreachable on
       any phone. */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-light-secondary);
        border-bottom: 1px solid var(--glass-border);
        padding: 0.5rem 2rem 1.5rem;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a:not(.btn) {
        padding: 0.75rem 0;
    }
    .nav-links .btn {
        margin-top: 0.5rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .cta-group {
        flex-direction: column;
    }
    .pricing-card.featured {
        transform: none;
    }
    .about-grid,
    .colours-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .colours-section {
        padding: 4rem 0 5rem;
    }
    .mock-nav {
        display: none;
    }
    .contact-form .form-row {
        flex-direction: column;
    }
}

/* ── Demo video landing page (demo.html) ─────────────────────────────── */
.demo-hero {
    padding: 11rem 0 4rem;
    text-align: center;
    background: linear-gradient(rgba(10, 15, 24, 0.82), rgba(10, 15, 24, 0.96)), url('assets/church_banner.png') center/cover no-repeat;
}

.demo-hero h1 {
    color: white;
    font-size: 3rem;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.demo-lead {
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.demo-player {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.demo-player iframe,
.demo-play,
.demo-play img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-play {
    padding: 0;
    cursor: pointer;
    background: none;
}

.demo-play img { object-fit: cover; }

.demo-play-icon {
    position: absolute;
    /* Over the product screenshot on the right of the poster, clear of the headline. */
    top: 50%;
    left: 71%;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.demo-play-icon svg { width: 40px; height: 40px; margin-left: 4px; }
.demo-play:hover .demo-play-icon { background: var(--primary-hover); transform: scale(1.06); }
.demo-play:focus-visible { outline: 3px solid var(--accent-color); outline-offset: -3px; }

.demo-chapters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 960px;
    margin: 1.5rem auto 0;
}

.demo-chapters button {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font: 500 0.9rem var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.demo-chapters button:hover,
.demo-chapters button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--accent-color);
}

.demo-details { padding: 6rem 0 4rem; background: var(--bg-light-secondary); }

.demo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem 3rem;
    max-width: 960px;
    margin: 3rem auto 0;
}

.demo-list > div { border-left: 3px solid var(--primary-color); padding-left: 1.25rem; }
.demo-list dt { font: 600 1.15rem var(--font-heading); color: var(--text-primary); margin-bottom: 0.4rem; }
.demo-list dd { margin: 0; color: var(--text-secondary); line-height: 1.6; }

.demo-next { padding: 5rem 0 6rem; text-align: center; background: var(--bg-light); }
.demo-next h2 { font-size: 2.25rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.demo-next > .container > p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 2rem; }
.demo-next .demo-small { margin: 1.75rem auto 0; font-size: 0.95rem; }
.demo-next .demo-small a { color: var(--primary-color); font-weight: 500; }

/* ── How-to videos (how-to.html): demo.html's player and chapters, one per light section ── */
.howto-hero { padding-bottom: 3rem; }
.howto-hero .demo-lead { margin-bottom: 1.75rem; }

.howto-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.howto-jump a {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.howto-jump a:hover,
.howto-jump a:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: var(--accent-color); }

.howto-video { padding: 5rem 0; background: var(--bg-light); scroll-margin-top: 4rem; }
.howto-video-alt { background: var(--bg-light-secondary); }
.howto-video h2 { max-width: 960px; margin: 0 auto 0.5rem; font-size: 2rem; color: var(--text-primary); }
.howto-anchor {
    display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; padding: 0.3rem;
    vertical-align: middle; border-radius: 6px; color: var(--text-secondary); opacity: 0.55;
    font-size: 0.8rem; font-weight: 500; text-decoration: none; transition: opacity 0.15s, color 0.15s;
}
.howto-anchor svg { width: 1.1rem; height: 1.1rem; }
.howto-video h2:hover .howto-anchor,
.howto-anchor:hover,
.howto-anchor:focus-visible { opacity: 1; color: var(--primary-color); }
.howto-video h2 .howto-anchor.copied { opacity: 1; color: #15803d; }
.howto-lead { max-width: 960px; margin: 0 auto 1.75rem; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.howto-video .demo-player { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18); }
/* The posters are screenshots, so the play button sits in the middle. */
.howto-video .demo-play-icon { left: 50%; }

.howto-video .demo-chapters button {
    border-color: #e2e8f0;
    background: white;
    color: var(--text-primary);
}
.howto-video .demo-chapters button:hover,
.howto-video .demo-chapters button:focus-visible { border-color: var(--primary-color); color: var(--primary-color); background: white; }

.howto-tips {
    max-width: 960px;
    margin: 1.75rem auto 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.howto-tips li + li { margin-top: 0.4rem; }

@media (max-width: 768px) {
    .howto-video { padding: 3.5rem 0; }
    .howto-video h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .demo-hero { padding: 9rem 0 3rem; }
    .demo-hero h1 { font-size: 2rem; }
    .demo-lead { font-size: 1rem; }
    .demo-player { border-radius: 8px; }
    .demo-play-icon { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
    .demo-chapters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
    .demo-chapters button { flex: none; }
    .demo-details { padding: 4rem 0 3rem; }
    .demo-next .cta-group { flex-direction: column; }
}

/* 404 page */
.not-found {
    padding: 11rem 0 6rem;
    max-width: 800px;
    min-height: 60vh;
    text-align: center;
}

.not-found p {
    color: var(--text-secondary);
}

.not-found .cta-group {
    justify-content: center;
    margin-top: 2rem;
}

.demo-hero .share-row p {
    color: rgba(255, 255, 255, 0.85);
}

/* ── FAQ (faq.html, generated by marketing/faq/build_faq.py) ── */
.faq-lead { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 1.5rem; }
.faq-toc ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.faq-toc a {
    display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--glass-border); border-radius: 999px;
    color: var(--text-primary); text-decoration: none; font-size: 0.9rem; background: var(--bg-light-secondary);
}
.faq-toc a:hover, .faq-toc a:focus-visible { border-color: var(--primary-color); color: var(--primary-color); }
.faq-section { scroll-margin-top: 7rem; }
.faq-item { border-bottom: 1px solid var(--glass-border); scroll-margin-top: 7rem; }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 0; font-weight: 600; color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--primary-color); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--primary-color); }
.faq-item summary:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: 4px; }
.faq-answer { padding: 0 0 1.25rem; color: var(--text-secondary); line-height: 1.7; }
.faq-answer p { margin: 0; }
.faq-table-wrap { overflow-x: auto; margin-top: 1rem; }
.faq-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.faq-table th, .faq-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--glass-border); text-align: left; vertical-align: top; }
.faq-table thead th { color: var(--text-primary); }
.faq-table tbody th { color: var(--text-primary); font-weight: 600; }
.faq-more { margin-top: 3rem; padding: 2rem; border-radius: 1rem; background: var(--bg-light-secondary); border: 1px solid var(--glass-border); text-align: center; }
.faq-more h2 { margin-top: 0; }
.faq-more .share-row { margin-top: 1.25rem; }

@media (max-width: 600px) {
    .faq-table { font-size: 0.85rem; }
    .faq-table th, .faq-table td { padding: 0.45rem 0.4rem; }
}
