/*
  Portrait AI for Professional — Landing Page Styles
  - Modern, responsive design
  - Light/Dark theme with [data-theme]
  - Minimal dependencies, smooth animations
*/

:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --elev: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --brand: #0ea5e9;
  --brand-2: #22d3ee;
  --brand-3: #6366f1;
  --ring: rgba(14, 165, 233, 0.5);
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  --radius: 16px;
}

/* Prefer user system theme; allow manual override via data-theme */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f8fafc;
    --panel: #ffffff;
    --elev: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --brand: #0ea5e9;
    --brand-2: #22d3ee;
    --brand-3: #6366f1;
    --ring: rgba(14, 165, 233, 0.4);
    --border: #e2e8f0;
    --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  }
}

html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 16px;
  z-index: 1000;
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg), transparent 10%);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; }
.brand-mark { font-size: 18px; }
img.brand-mark { width: 24px; height: 24px; display: inline-block; border-radius: 4px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.brand-name { letter-spacing: 0.2px; }

.nav-links { display: none; gap: 20px; align-items: center; justify-content: flex-end; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { appearance: none; border: 1px solid var(--border); background: var(--panel); color: var(--text); padding: 8px; border-radius: 10px; cursor: pointer; box-shadow: 0 0 0 0 transparent; }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.menu-toggle { display: inline-flex; }

/* Mobile menu sits under the sticky header and overlays content */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 12px;
  padding: 12px 4%;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 12px 24px rgba(2,6,23,0.25);
}
/* Keep regular links subtle, but let real buttons keep their styles */
.mobile-menu a:not(.btn) { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--panel), var(--brand) 2%); }
.mobile-menu a.btn { display: inline-flex; width: 100%; }

@media (min-width: 900px) {
  .nav-links { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-actions { display: none; }
  .mobile-menu { display: none !important; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); background: var(--panel); }
.btn:hover { transform: translateY(-1px); transition: 150ms ease; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; border-color: transparent; box-shadow: 0 10px 20px rgba(14,165,233,0.25); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-small { padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.btn-lg { padding: 14px 20px; font-size: 16px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-inner { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
.hero-copy h1 { margin: 0 0 10px; font-size: clamp(28px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-copy .lede { margin: 0 0 18px; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-trust { display: flex; gap: 8px; margin-top: 16px; opacity: 0.9; }
.hero-trust img { height: 22px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual .phone { filter: drop-shadow(var(--shadow)); max-width: 320px; height: auto; }

@media (min-width: 900px) {
  .hero { padding: 96px 0 60px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero-visual { justify-content: end; }
}

/* New device mockups used in hero */
.devices { position: relative; display: flex; gap: 16px; justify-content: center; }
.device { width: 260px; background: var(--elev); border: 1px solid var(--border); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); }
.device .device-screen { border-radius: 18px; overflow: hidden; background: #000; height: 440px; display: block; }
.device .device-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device.tilt { position: absolute; right: -40px; top: 40px; transform: rotate(-8deg); opacity: 0.95; }

@media (min-width: 900px) {
  .device { width: 300px; }
  .device .device-screen { height: 520px; }
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: transparent; border-top: none; border-bottom: none; }
.section-title { margin: 0 0 6px; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.01em; }
.section-subtitle { margin: 0 0 26px; color: var(--muted); }

/* Ensure results section paints in its own layer */
#results { position: relative; isolation: isolate; }
/* Remove all effects inside results for a simple, stable gallery */
#results, #results * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Cards & Grid */
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { background: color-mix(in srgb, var(--panel), transparent 10%); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-2px); transition: 180ms ease; }
.feature .icon { font-size: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(120px 60px at 0% 0%, rgba(34,211,238,0.2), transparent),
                                                radial-gradient(120px 60px at 100% 100%, rgba(99,102,241,0.2), transparent),
                                                color-mix(in srgb, var(--panel), var(--brand) 8%);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

/* Carousel */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.frame { scroll-snap-align: start; margin: 0; background: var(--elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.frame img { width: 100%; height: 360px; object-fit: cover; display: block; }
.frame figcaption { padding: 10px 12px; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .carousel { grid-auto-columns: 32%; } .frame img { height: 260px; } }

/* Gallery grid */
.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); cursor: zoom-in; }
.cta.centered { display: flex; justify-content: center; margin-top: 18px; }

/* Pricing */
.pricing { align-items: stretch; }
.plan .price { font-size: 28px; margin: 8px 0 10px; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .list { padding-left: 20px; margin: 10px 0 20px; }
.plan .list li { margin: 6px 0; }
.plan.highlight { position: relative; border: 1px solid color-mix(in srgb, var(--brand), var(--border) 70%); box-shadow: 0 12px 30px rgba(14,165,233,0.18); }
.plan .badge { position: absolute; top: -12px; right: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: white; padding: 6px 10px; border-radius: 999px; font-size: 12px; }

/* FAQ */
.faq details { background: color-mix(in srgb, var(--panel), transparent 8%); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* CTA strip */
.cta-strip { padding: 48px 0; background: transparent; border-top: none; border-bottom: none; }
.cta-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-row h2 { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(2,6,23,0.9); display: grid; place-items: center; z-index: 100; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.lightbox-close { position: absolute; top: 12px; right: 16px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 999px; width: 38px; height: 38px; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

/* Sticky download bar */
.download-bar { position: fixed; left: 0; right: 0; bottom: 12px; z-index: 60; }
.download-bar .bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: color-mix(in srgb, var(--panel), var(--brand) 6%); border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
.download-bar .bar-copy { display: inline-flex; align-items: center; gap: 10px; }
.download-bar { opacity: 0; pointer-events: none; transform: translateY(16px); transition: 200ms ease; }
.download-bar.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (min-width: 900px) { .download-bar { display: none; } }

/* Footer */
.site-footer { padding: 36px 0; }
.footer-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.footer-grid .col a { display: block; margin: 4px 0; color: var(--muted); text-decoration: none; }
/* Ensure the brand link in the footer keeps its flex alignment */
.footer-grid .col a.brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-grid .col a:hover { color: var(--text); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* Trust Stats Section removed (section commented in HTML) */

/* How It Works/Steps removed (section not present) */

/* Simple Gallery (no effects) */
#results .gallery-grid { 
  display: grid; 
  gap: 8px; 
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { #results .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

#results .gallery-item {
  display: block;
  position: static;
  overflow: visible;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
  transition: none;
}

#results .gallery-item img { 
  display: block;
  width: 100%; 
  height: auto;
  aspect-ratio: auto;
  object-fit: contain; 
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: none;
}

#results .gallery-overlay,
#results .gallery-item:hover .gallery-overlay {
  display: none !important;
}

#results .gallery-item:hover,
#results .gallery-item:hover img {
  transform: none !important;
}

/* Testimonials removed (section commented in HTML) */

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

/* Removed legacy scroll-reveal helpers */

/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(34,211,238,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99,102,241,0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(14,165,233,0.1) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.floating-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(99,102,241,0.1));
  animation: float 15s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: -5s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--panel), var(--brand) 10%);
  border: 1px solid color-mix(in srgb, var(--border), var(--brand) 30%);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.badge-icon {
  font-size: 16px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-trust {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.trust-item svg {
  color: var(--brand);
}

.pulse-btn {
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3); }
  50% { box-shadow: 0 8px 32px rgba(14, 165, 233, 0.5); }
  100% { box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3); }
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.pulse-btn:hover .btn-shine {
  left: 100%;
}

.device-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  border-radius: 40px;
  opacity: 0.1;
  z-index: -1;
  animation: deviceGlow 4s ease-in-out infinite;
}

@keyframes deviceGlow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

.hero-decoration {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  z-index: -1;
}

.decoration-circle {
  width: 200px;
  height: 200px;
  border: 2px solid color-mix(in srgb, var(--brand), transparent 80%);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.decoration-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, var(--brand) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.3;
  animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Demo Section removed (no demo UI on page) */

/* Featured Section */
.featured-section {
  padding: 32px 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.featured-label {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.featured-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.featured-logo:hover {
  opacity: 1;
  color: var(--text);
  transform: scale(1.1);
}

/* Enhanced Pricing Section (toggle UI removed) */

.pricing .plan {
  position: relative;
  transition: all 0.3s ease;
}

.pricing .plan:hover {
  transform: translateY(-8px);
}

.pricing .plan.highlight {
  transform: scale(1.05);
  z-index: 2;
}

.pricing .plan.highlight:hover {
  transform: scale(1.05) translateY(-8px);
}

.plan .list {
  padding: 0;
  margin: 20px 0;
}

.plan .list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.plan .list li svg {
  color: var(--brand);
  flex-shrink: 0;
}

/* .price-annual-note removed (not used) */

.plan-note {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
  text-align: center;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 500px;
  margin: 40px auto 0;
  padding: 24px;
  background: color-mix(in srgb, var(--panel), var(--brand) 5%);
  border: 1px solid color-mix(in srgb, var(--border), var(--brand) 30%);
  border-radius: 16px;
  text-align: left;
}

.guarantee-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.pricing-guarantee h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.pricing-guarantee p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .pricing-guarantee {
    flex-direction: column;
    text-align: center;
  }
  
  /* pricing toggle styles removed */
}

/* Enhanced FAQ */
.faq details {
  transition: all 0.3s ease;
}

.faq details:hover {
  border-color: color-mix(in srgb, var(--brand), var(--border) 70%);
}

.faq details[open] {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.1);
}

.faq summary {
  transition: color 0.3s ease;
}

.faq details[open] summary {
  color: var(--brand);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Skeleton Screens */
.skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, color-mix(in srgb, var(--panel), var(--border) 50%) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error States */
.error {
  color: #ef4444;
  background: color-mix(in srgb, var(--panel), #ef4444 10%);
  border-color: #ef4444;
}

/* Success States */
.success {
  color: #10b981;
  background: color-mix(in srgb, var(--panel), #10b981 10%);
  border-color: #10b981;
}

/* Sticky Header CTA */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--panel), transparent 5%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 4%;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: 40px 0;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-stat {
    flex: 1;
    min-width: 80px;
  }
  
  .trust-item {
    font-size: 12px;
  }
  
  .floating-element {
    width: 60px;
    height: 60px;
  }
  
  .decoration-circle {
    width: 120px;
    height: 120px;
  }
  
  .decoration-dots {
    width: 60px;
    height: 60px;
  }
}

  /* Touch Improvements */
  @media (hover: none) {
  .btn:hover {
    transform: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  /* Removed scroll-reveal override (helpers removed) */
  /* Force gallery visibility on touch devices */
  #results .gallery-item,
  #results .gallery-item img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-element {
    animation: none;
  }
  
  .hero-gradient {
    animation: none;
  }
  
  .pulse-btn {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.5);
  }
  
  .btn-primary {
    background: var(--brand);
    border: 2px solid var(--brand);
  }
}

/* Utilities */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.p-0 { padding: 0; }
/* Ensure elements with the HTML hidden attribute are actually hidden,
   even if other rules set display */
[hidden] { display: none !important; }
