/* ===========================================================================
   ClonyPDF — Global Shell Stylesheet
   Scope: .saas-header, mobile menu, .saas-footer, .related-guides,
          plus legacy compatibility layers required by existing pages.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   --header-h is intentionally global: body padding-top and page-level anchor
   offsets both consume it, and 70px is the real rendered height.
   Shadow tokens are prefixed --shell- so they cannot clobber page stylesheets
   that define --shadow-sm / --shadow-lg with different values.
   --------------------------------------------------------------------------- */
:root {
    --announce-h: 40px;
    --header-h: 110px; /* 40px announce bar + 70px nav */

    --brand: #f97316;
    --brand-dark: #c2410c;
    --brand-color: <?= htmlspecialchars($shellBrandColor, ENT_QUOTES, 'UTF-8') ?>;

    --text-main: #1f2937;
    --text-light: #6b7280;
    --text-subtle: #6b7280;

    --bg-glass: rgba(255, 255, 255, 0.95);
    --shell-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shell-shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.1);

    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --footer-heading: #f8fafc;
    --footer-hover: #f97316;
    --footer-border: #1e293b;
}

/* Reserve space for the fixed header. */
body {
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------------------
   2. SHELL ACCESSIBILITY PRIMITIVES
   --------------------------------------------------------------------------- */
.shell-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 8px;
    z-index: 3000;
    transform: translateY(-160%);
    display: inline-block;
    padding: 10px 18px;
    background: var(--text-main);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: var(--shell-shadow-lg);
    transition: transform 0.18s ease;
}
.skip-link:focus-visible,
.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* Single focus-ring definition for every shell control. */
.saas-header a:focus-visible,
.saas-header button:focus-visible,
.mobile-menu-overlay a:focus-visible,
.mobile-menu-overlay button:focus-visible,
.saas-footer a:focus-visible,
.related-guides a:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------------------------------------------------------------------------
   3. HEADER
   --------------------------------------------------------------------------- */
.saas-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* The scrolled glass effect only targets the nav strip, not the announce bar. */
.header-inner {
    flex: 1;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}

.saas-header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
}

/* LOGO
   Previously height:72px inside a 70px header, which overflowed, and had no
   intrinsic dimensions, which caused layout shift on every page. */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    display: block;
}
.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}
.logo-highlight { color: var(--brand); }
.header-logo-text { display: none; }
@media (min-width: 1025px) {
    .header-logo-text {
        display: inline-block;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, var(--brand) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* ---------------------------------------------------------------------------
   ANNOUNCEMENT BAR — dark strip above the nav, visible on all pages.
   Hidden on mobile (< 1024px) via the breakpoint block below.
   --------------------------------------------------------------------------- */
.announce-bar {
    height: var(--announce-h);
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}
.announce-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-display, inherit);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}
.announce-bar__pill {
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.announce-bar__msg {
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.75);
}
.announce-bar__cta {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.announce-bar__cta:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}
.announce-bar__cta svg {
    transition: transform 0.25s ease;
}
.announce-bar__cta:hover svg {
    transform: translateX(3px);
}

/* DESKTOP NAV */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}
.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: inherit;
}
.nav-link:hover,
.nav-link.is-active { 
    color: var(--brand); 
    background: #fff7ed;
}

.nav-chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   4. MEGA DROPDOWN
   Anchored to the wrapper's left edge with a viewport clamp so the 4-column
   layout cannot overflow at 1025-1200px widths.
   --------------------------------------------------------------------------- */
.dropdown-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(12px);
    width: 760px;
    max-width: calc(100vw - 48px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.7);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 2000;
}

/* Invisible bridge across the gap between trigger and panel. */
.mega-dropdown::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Open state — driven by JS so keyboard and touch both work. */
.dropdown-trigger[aria-expanded="true"] + .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-trigger[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

/* Hover is an enhancement for pointer devices only. This prevents the
   sticky-hover double-tap problem on touchscreens. */
@media (hover: hover) and (pointer: fine) {
    .dropdown-wrapper:hover .mega-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .dropdown-wrapper:hover .nav-chevron {
        transform: rotate(180deg);
    }
}

.mega-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 22px;
}
.mega-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Was #9ca3af — 2.5:1 on white, failed WCAG AA. */
.mega-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mega-item {
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.mega-item:hover,
.mega-item.is-active { background: #f9fafb; color: var(--brand); }

.highlight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff7ed;
    padding: 12px;
    border: 1px solid #ffedd5;
}
.highlight-item:hover { background: #ffedd5; }
.highlight-item i { font-size: 18px; color: var(--brand); margin-top: 2px; width: 20px; flex-shrink: 0; }
.highlight-item span { font-weight: 700; display: block; line-height: 1.3; }
.highlight-item small { color: var(--text-light); font-size: 12px; display: block; line-height: 1.4; }

.badge-new {
    background: #dcfce7;
    color: #166534;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

/* CTA */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-header-cta {
    background: var(--brand);
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    letter-spacing: -0.01em;
}
.btn-header-cta:hover {
    background: var(--brand-dark);
    box-shadow: 0 6px 22px rgba(249, 115, 22, 0.52);
    transform: translateY(-1px);
}
.cta-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.btn-header-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ---------------------------------------------------------------------------
   5. MOBILE MENU
   --------------------------------------------------------------------------- */
.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text-main);
    padding: 10px;
    line-height: 0;
    border-radius: 8px;
}
.mobile-toggle svg { width: 22px; height: 22px; display: block; }

.mobile-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-scrim.active { opacity: 1; visibility: visible; }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    transform: translateX(100%);
    visibility: hidden;
    padding: 18px 20px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mobile-menu-overlay.active { transform: translateX(0); visibility: visible; }

body.shell-menu-open { overflow: hidden; }

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.close-btn {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    color: var(--text-main);
    border-radius: 8px;
}
.close-btn svg { width: 20px; height: 20px; display: block; }

.mobile-section { margin-bottom: 26px; }

/* Was #94a3b8 — 2.4:1 on white, failed WCAG AA. */
.mobile-label,
.mobile-dropdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 10px;
    font-weight: 700;
}

.mobile-links ul { list-style: none; margin: 0; padding: 0; }
.mobile-links a {
    display: block;
    padding: 12px 0;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.mobile-links a.is-active { color: var(--brand); }

.mobile-grid { padding-left: 10px; display: flex; flex-direction: column; }
.mobile-grid a {
    font-size: 14px;
    border: 0;
    padding: 9px 0;
    color: #4b5563;
}
.mobile-grid a:hover,
.mobile-grid a.is-active { color: var(--brand); }

.view-all { color: var(--brand); font-weight: 700; }

.featured-link {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 12px;
    background: #fff;
    text-decoration: none;
}
.featured-link i { color: var(--brand); font-size: 20px; width: 22px; flex-shrink: 0; }
.featured-link span { display: block; font-weight: 700; color: #0f172a; }
.featured-link small { color: #64748b; }

@media (max-width: 1024px) {
    :root { --header-h: 70px; } /* no announce bar on mobile */
    .announce-bar { display: none; }
    .desktop-nav,
    .btn-header-cta { display: none; }
    .mobile-toggle { display: block; }
    /* On mobile the header-inner takes up the full --header-h */
    .header-inner { border-bottom: 1px solid rgba(0,0,0,0.07); background: rgba(255,255,255,0.97); }
}

/* ---------------------------------------------------------------------------
   6. FOOTER  (consumed by includes/footer.php)
   --------------------------------------------------------------------------- */
.saas-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 20px 40px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    border-top: 1px solid var(--footer-border);
}
.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
}
.footer-logo .logo-highlight { color: var(--footer-hover); }

.brand-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 24px;
}

.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    font-size: 16px;
    text-decoration: none;
}
.social-links a:hover { background: var(--footer-hover); transform: translateY(-3px); }

.footer-col h4 {
    color: var(--footer-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 14px; }
.footer-col a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-col a:hover { color: var(--footer-hover); padding-left: 4px; }

.link-highlight { color: #fff; font-weight: 600; }

.badge-footer {
    background: #4c1d95;
    color: #e9d5ff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-divider { height: 1px; background: var(--footer-border); margin-bottom: 30px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 20px;
}
.bottom-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bottom-left a { color: var(--footer-text); text-decoration: none; }
.bottom-left a:hover { color: #fff; }
.dot-separator { color: #475569; }

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22c55e;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .saas-footer { padding: 50px 20px 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand-col { margin-bottom: 10px; }
    .footer-bottom { flex-direction: column-reverse; gap: 20px; text-align: center; }
    .bottom-left { flex-direction: column; gap: 10px; }
    .dot-separator { display: none; }
}

/* ---------------------------------------------------------------------------
   7. RELATED GUIDES  (consumed by includes/related-guides.php)
   --------------------------------------------------------------------------- */
.related-guides {
    margin-top: 60px;
    padding: 48px 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}
.related-guides h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.related-guides p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.guide-card {
    display: block;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-align: left;
}
.guide-card:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.guide-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 6px;
}
.guide-desc { font-size: 13px; color: #64748b; line-height: 1.45; }
.guide-card:hover .guide-title { color: #2563eb; }

@media (max-width: 640px) {
    .related-guides { padding: 36px 20px; }
    .guides-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   8. LEGACY COMPATIBILITY LAYER
   Retained because existing pages depend on it. !important removed so that a
   page's own deliberate layout wins; these now act as defaults, not overrides.
   --------------------------------------------------------------------------- */

/* Collapse stray gaps beneath tool headers. */
.site-header,
.header,
.navbar,
.main-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Tool hero top spacing. `.hero` is deliberately excluded: full-bleed hero
   sections (e.g. the Passport Photo Maker) manage their own padding. */
.tool-hero,
.page-hero,
.tool-container {
    padding-top: 20px;
    margin-top: 0;
}
@media (max-width: 640px) {
    .tool-hero,
    .page-hero,
    .tool-container { padding-top: 14px; }
}

/* Centre the first hero block on legacy tool pages. */
header + section,
header + .container,
header + .wrapper {
    text-align: center;
}
header + section h1,
header + section p {
    margin-left: auto;
    margin-right: auto;
}
header + section small { display: block; }

@media (max-width: 768px) {
    header + section h1 { max-width: 90%; }
    header + section p  { max-width: 92%; }
}

.hero-inner { margin-bottom: 32px; }

/* Mobile density for legacy pages. */
@media (max-width: 768px) {
    section.relative { padding-top: 16px; padding-bottom: 40px; }
    h1 { font-size: 1.75rem; line-height: 1.2; }
    h1 + p { font-size: 13px; }
    .glass-card { max-width: 92%; margin-left: auto; margin-right: auto; }
    .glass-card > div { padding: 16px; }
    .footer-grid { gap: 2rem; }
}

/* Floating decorative tool icons. */
@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.tool-bg-icon {
    position: absolute;
    opacity: 0.15;
    color: var(--brand);
    font-size: 50px;
    animation: floatAnim 6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
.t-icon-1 { top: 5%;   left: 2%;  font-size: 40px; }
.t-icon-2 { top: 15%;  right: 5%; font-size: 70px; animation-delay: 1s; }
.t-icon-3 { bottom: 10%; left: 5%; font-size: 60px; animation-delay: 2s; }
.t-icon-4 { bottom: 20%; right: 5%; font-size: 40px; animation-delay: 3s; }

/* Upload dropzone. Two contradictory rule sets were previously merged by the
   cascade; consolidated here into one intentional style. */
.upload-box,
#dropZone {
    background: #fff7ed;
    border: 2.5px dashed var(--brand);
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.upload-box:hover,
#dropZone:hover {
    border-color: #ea580c;
    background: #fff;
    transform: translateY(-5px);
}
.upload-box:focus-within,
#dropZone:focus-within {
    border-color: #ea580c;
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

/* Icon alignment. Previously `img, svg, i { display:inline-block }` globally,
   which overrode page stylesheets that set images to display:block. */
.saas-header i,
.saas-header svg,
.mobile-menu-overlay i,
.saas-footer i,
.saas-footer svg,
.related-guides i {
    display: inline-block;
    vertical-align: middle;
}

.glass-card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Typographic defaults. No !important — page styles win. */
h1, h2, h3 { color: #0f172a; }
p { color: #475569; }

/* Utility shims for pages authored against a Tailwind-style API that is not
   loaded on this site. Do not remove without auditing those pages. */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; width: 100%; }
.text-center { text-align: center; }
.w-\[600px\] { width: 600px; max-width: 100vw; }
.h-\[400px\] { height: 400px; }
.blur-\[100px\] { filter: blur(100px); }
.blur-\[50px\] { filter: blur(50px); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-green-900\/30 { background-color: rgba(20, 83, 45, 0.3); }
.bg-blue-900\/30 { background-color: rgba(30, 58, 138, 0.3); }
.rounded-\[18px\] { border-radius: 18px; }
.min-h-\[400px\] { min-height: 400px; }
.top-0 { top: 0; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-z-10 { z-index: -10; }

@media (max-width: 768px) {
    .absolute.top-0 { width: 350px; height: 250px; filter: blur(60px); }
}

/* ---------------------------------------------------------------------------
   9. REDUCED MOTION
   The shell runs two infinite animations (blink, floatAnim) plus a number of
   transforms. Previously unguarded.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .saas-header,
    .mega-dropdown,
    .mobile-menu-overlay,
    .mobile-scrim,
    .skip-link,
    .guide-card,
    .social-links a,
    .upload-box,
    #dropZone,
    .nav-chevron {
        transition-duration: 0.01ms;
    }
    .status-dot,
    .tool-bg-icon { animation: none; }
    .guide-card:hover,
    .social-links a:hover,
    .upload-box:hover,
    #dropZone:hover { transform: none; }
}
</style>
