/* ==========================================================================
   Understanding Your AI — Shared Landing Page Styles
   Design system extracted from the Fractional AI Leadership template so every
   service / location landing page renders identically. Linked from each page
   via <link rel="stylesheet" href="/assets/css/landing.css">.
   ========================================================================== */

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

:root {
    --primary: #00B4D8;
    --secondary: #F7B731;
    --accent: #FF3366;
    --dark: #0f172a;
    --dark-muted: #334155;
    --light: #FFFFFF;
    --gray: #f8fafc;
    --border: #e2e8f0;

    --gradient-1: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
    --gradient-2: linear-gradient(135deg, #F7B731 0%, #FFA500 100%);
    --gradient-3: linear-gradient(135deg, #00B4D8 0%, #F7B731 100%);
    --gradient-accent: linear-gradient(135deg, #FF3366 0%, #FF6B9D 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-btn: 8px;
    --radius-card: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-muted);
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute; top: 10px; left: 10px; padding: 0.75rem 1rem;
    background: var(--dark); color: var(--light); border-radius: var(--radius-btn);
    transform: translateY(-200%); transition: transform 0.2s ease; z-index: 3000;
    text-decoration: none; font-weight: 600;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--primary); outline-offset: 2px; }

.bg-animation {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 180, 216, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(247, 183, 49, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 51, 102, 0.03) 0%, transparent 40%),
        radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px;
}

/* Header / Nav */
header {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0;
    z-index: 1000; padding: 1rem 2rem; transition: all 0.3s ease;
}
nav { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo {
    font-size: 1.25rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.logo img { height: 36px; width: auto; vertical-align: middle; }
.mobile-menu-toggle {
    display: none; background: transparent; border: 1px solid var(--border); color: var(--dark);
    font-size: 1.5rem; cursor: pointer; padding: 0.5rem 0.75rem; border-radius: var(--radius-btn); transition: all 0.2s ease;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--accent); font-weight: 700; }

/* Breadcrumb */
.breadcrumb { max-width: 1000px; margin: 0 auto; padding: 1.25rem 2rem 0; font-size: 0.85rem; color: #64748b; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; color: #cbd5e1; }

/* Page Hero */
.page-hero {
    max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 3rem;
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center;
}
.page-hero.single { grid-template-columns: 1fr; max-width: 900px; text-align: center; }
.page-hero-eyebrow {
    display: inline-block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--accent); margin-bottom: 1rem;
    background: rgba(255, 51, 102, 0.1); padding: 0.3rem 0.8rem; border-radius: 50px;
}
.page-hero h1 {
    font-size: 3.2rem; font-weight: 900; color: var(--dark);
    margin-bottom: 1.25rem; line-height: 1.1; letter-spacing: -0.03em;
}
.gradient-text { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-cyan { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-sub { font-size: 1.15rem; color: var(--dark-muted); line-height: 1.7; margin-bottom: 2rem; }
.page-hero.single .page-hero-sub { max-width: 720px; margin-left: auto; margin-right: auto; }

.hero-stat-row { display: flex; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.page-hero.single .hero-stat-row { justify-content: center; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number { font-size: 2rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; line-height: 1.2; }
.hero-stat-label { font-size: 0.85rem; color: var(--dark-muted); font-weight: 500; }

.hero-card {
    background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 2rem; box-shadow: var(--shadow-float);
}
.hero-card h2 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.hero-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.hero-card ul li { padding-left: 1.75rem; position: relative; font-size: 0.95rem; color: var(--dark-muted); }
.hero-card ul li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; color: var(--primary); }

/* Buttons */
.cta-button {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 2rem;
    background: var(--gradient-accent); color: var(--light); text-decoration: none; border-radius: var(--radius-btn);
    font-weight: 600; font-size: 1rem; transition: all 0.2s ease; border: none; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.25); position: relative; overflow: hidden;
}
.cta-button::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg) translateX(-100%);
    animation: button-shine 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes button-shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    20%, 100% { transform: rotate(45deg) translateX(100%); }
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4); }

.cta-secondary {
    display: inline-flex; align-items: center; padding: 0.875rem 2rem;
    background: var(--light); color: var(--dark); text-decoration: none; border-radius: var(--radius-btn);
    font-weight: 600; font-size: 1rem; transition: all 0.2s ease; border: 1px solid var(--border); margin-left: 1rem;
}
.cta-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Problem Block */
.problem-block {
    max-width: 900px; margin: 0 auto 5rem; padding: 3rem;
    background: var(--dark); border-radius: var(--radius-card); color: var(--light);
    position: relative; overflow: hidden;
}
.problem-block::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-accent); }
.problem-block h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.problem-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.problem-list li {
    padding: 0.75rem 1rem 0.75rem 2.5rem; position: relative; font-size: 1.05rem; color: #cbd5e1; line-height: 1.6;
    background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-btn);
}
.problem-list li::before { content: '⚠️'; position: absolute; left: 0.75rem; top: 0.75rem; font-size: 1rem; }
.problem-bridge { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 1.1rem; color: var(--secondary); font-weight: 600; }

/* Section Defaults */
section { max-width: 1000px; margin: 0 auto 5rem; padding: 0 2rem; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-sub { text-align: center; font-size: 1.1rem; color: var(--dark-muted); margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Long-form SEO prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.05rem; color: var(--dark-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.prose h3 { font-size: 1.35rem; font-weight: 800; color: var(--dark); margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.prose a { color: var(--primary); font-weight: 600; }
.prose strong { color: var(--dark); }

/* Feature / Deliverable cards */
.deliverables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.deliverable-card { padding: 2rem; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-card); transition: all 0.2s ease; }
.deliverable-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.deliverable-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.deliverable-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.deliverable-card p { font-size: 0.95rem; color: var(--dark-muted); line-height: 1.6; }

/* "What you'll learn" checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; max-width: 820px; margin: 0 auto; list-style: none; }
.checklist li { padding: 0.65rem 0 0.65rem 2rem; position: relative; font-size: 1rem; color: var(--dark-muted); border-bottom: 1px solid var(--border); }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0.65rem; font-weight: 800; color: var(--primary); }

/* Pricing Tiers */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.tier-card { background: var(--light); padding: 3rem 2rem; border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.25s ease; display: flex; flex-direction: column; }
.tier-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.tier-card.featured { background: var(--gradient-1); border: none; box-shadow: 0 10px 25px rgba(0, 180, 216, 0.25); }
.tier-card.featured:hover { box-shadow: 0 15px 35px rgba(0, 180, 216, 0.35); transform: translateY(-5px); }
.tier-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.75rem; border-radius: 20px; margin-bottom: 1rem; width: fit-content; }
.tier-card:not(.featured) .tier-badge { background: rgba(0, 180, 216, 0.1); color: var(--primary); }
.tier-card.featured .tier-badge { background: rgba(255, 255, 255, 0.2); color: var(--light); }
.tier-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; color: var(--dark); }
.tier-card.featured h3 { color: var(--light); }
.tier-price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; color: var(--dark); letter-spacing: -0.02em; }
.tier-card.featured .tier-price { color: var(--light); }
.tier-price span { font-size: 1rem; font-weight: 500; }
.tier-card:not(.featured) .tier-price span { color: var(--dark-muted); }
.tier-card.featured .tier-price span { color: rgba(255,255,255,0.8); }
.tier-card ul { list-style: none; margin: 1.5rem 0; flex-grow: 1; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.tier-card.featured ul { border-top-color: rgba(255, 255, 255, 0.2); }
.tier-card ul li { padding: 0.5rem 0 0.5rem 1.75rem; position: relative; font-size: 0.95rem; color: var(--dark-muted); }
.tier-card.featured ul li { color: rgba(255, 255, 255, 0.9); }
.tier-card ul li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; color: var(--primary); font-size: 1rem; }
.tier-card.featured ul li::before { color: var(--secondary); }
.tier-button { display: block; width: 100%; padding: 0.875rem; text-align: center; text-decoration: none; border-radius: var(--radius-btn); font-weight: 600; font-size: 1rem; transition: all 0.2s ease; margin-top: 1.5rem; }
.tier-card:not(.featured) .tier-button { background: var(--gray); color: var(--dark); border: 1px solid var(--border); }
.tier-card:not(.featured) .tier-button:hover { background: var(--dark); color: var(--light); border-color: var(--dark); }
.tier-card.featured .tier-button { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
.tier-card.featured .tier-button:hover { background: rgba(255,255,255,0.25); }

/* Why grid */
.why-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.why-card { text-align: center; padding: 2rem 1.5rem; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-card); transition: all 0.2s ease; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-icon { font-size: 2rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: var(--dark-muted); line-height: 1.6; }

/* Who It's For */
.for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.for-card { padding: 1.5rem; background: var(--gray); border-radius: var(--radius-btn); border-left: 4px solid var(--primary); }
.for-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.35rem; }
.for-card p { font-size: 0.95rem; color: var(--dark-muted); line-height: 1.6; margin: 0; }

/* Pull Quote */
.pull-quote-block { background: var(--gray); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 3rem; border-radius: var(--radius-card); margin: 4rem auto; max-width: 900px; }
.pull-quote-text { font-size: 1.5rem; font-weight: 600; color: var(--dark); margin-bottom: 1rem; letter-spacing: -0.01em; line-height: 1.4; }
.pull-quote-attr { font-size: 0.95rem; color: #64748b; font-weight: 500; }

/* FAQ accordion */
.faq-container { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--light); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--light); border: none; cursor: pointer; font-family: inherit; text-align: left; }
.faq-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.faq-toggle { font-size: 1.5rem; font-weight: 400; color: var(--primary); line-height: 1; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding: 0 1.5rem 1.5rem; font-size: 0.98rem; color: var(--dark-muted); line-height: 1.7; margin: 0; }

/* Related services cross-links */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.related-card { display: block; padding: 1.5rem; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-card); text-decoration: none; transition: all 0.2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.related-eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.related-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 0.4rem 0 0.4rem; }
.related-card p { font-size: 0.9rem; color: var(--dark-muted); line-height: 1.55; margin: 0; }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; padding: 3rem; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-btn); font-size: 1rem; font-family: inherit; transition: border-color 0.2s ease; background: var(--light); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-trust-note { font-size: 0.8rem; color: #64748b; margin-top: 0.4rem; }
.submit-button { display: block; width: 100%; padding: 0.875rem; background: var(--gradient-accent); color: var(--light); border: none; border-radius: var(--radius-btn); font-weight: 600; font-size: 1rem; cursor: pointer; font-family: inherit; transition: all 0.2s ease; box-shadow: 0 4px 15px rgba(255, 51, 102, 0.25); position: relative; overflow: hidden; }
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4); }
.form-response-note { text-align: center; font-size: 0.85rem; color: #64748b; margin-top: 1rem; }

/* Footer (multi-column for internal linking) */
.site-footer { background: var(--dark); color: #94a3b8; padding: 3.5rem 2rem 2rem; margin-top: 5rem; font-size: 0.9rem; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand strong { color: var(--light); font-size: 1.05rem; display: block; margin-bottom: 0.5rem; }
.footer-brand p { line-height: 1.6; max-width: 28ch; }
.footer-col h4 { color: var(--light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { max-width: 1100px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 1024px) {
    .page-hero { grid-template-columns: 1fr; text-align: center; padding: 3rem 2rem 2rem; }
    .page-hero h1 { font-size: 2.5rem; }
    .hero-stat-row { justify-content: center; }
    .hero-card { text-align: left; max-width: 480px; margin: 0 auto; }
    .cta-secondary { margin-left: 0; margin-top: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
        background: var(--light); flex-direction: column; gap: 0; padding: 1rem;
        transform: translateX(-100%); transition: transform 0.2s ease; border-top: 1px solid var(--border);
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 1.25rem; text-align: center; font-size: 1.05rem; }

    .page-hero h1 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .deliverables-grid { grid-template-columns: 1fr; }
    .checklist { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .for-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .problem-block { padding: 2rem 1.5rem; margin: 0 1rem 4rem; }
    .pull-quote-block { padding: 2rem 1.5rem; }
    .pull-quote-text { font-size: 1.25rem; }
    .contact-form { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    section { margin-bottom: 3.5rem; }
}

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