/*
  Aasaan Landing Page Styles
  Modern SaaS-style, responsive, conversion-focused
  Colors: Blue #2563eb, White #ffffff, Slate/Neutral accents
*/

:root {
  --blue: #2563eb;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-800: #1f2937;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --green: #10b981;
  --amber: #f59e0b;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08), 0 4px 10px rgba(2, 6, 23, 0.06);
  --radius: 14px;
  --section-y: 5rem;
  --section-y-mobile: 3.5rem;
  --card-pad: 1.25rem;
  --grid-gap: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
}

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

/* Container width: use near full width on mobile/desktop */
.container { width: min(1120px, 96%); margin-inline: auto; }
@media (max-width: 640px) { .container { width: 100%; padding-inline: 12px; } }

.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;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .75rem 0;
  position: relative;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--blue); display: inline-block; position: relative; }
.brand-mark::after { content: ''; position: absolute; inset: 4px; border: 2px solid #fff; border-radius: 6px; opacity: .9; }
.brand-text { font-weight: 700; color: var(--slate-900); font-size: 1.05rem; letter-spacing: .2px; }

.nav-toggle { display: none; background: none; border: 0; padding: .25rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--slate-800); margin: 4px 0; border-radius: 2px; }

.nav-menu {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem;
  position: static;
  background: transparent;
  border: 0;
  flex-direction: row;
}
.nav-menu.show { display: flex; }
.nav-menu a { color: var(--slate-700); text-decoration: none; font-weight: 500; }
.nav-menu a:hover { color: var(--blue); }

.header-cta { display: flex; gap: .6rem; }

/* Buttons */
.btn { --btn-bg: var(--slate-800); --btn-color: #fff; --btn-border: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-color); text-decoration: none; font-weight: 600; letter-spacing: .2px; transition: transform .1s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-lg { height: 48px; padding: 0 1.25rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--blue-600); }
.btn-primary:hover { --btn-bg: var(--blue-700); }

.btn-secondary { --btn-bg: #0ea5e9; }
.btn-secondary:hover { --btn-bg: #0284c7; }

.btn-ghost { --btn-bg: #fff; --btn-color: var(--slate-800); --btn-border: var(--slate-300); }
.btn-ghost:hover { --btn-border: var(--blue-600); color: var(--blue-600); }

/* Sections */
.section { padding: var(--section-y) 0; }
.hero { padding: calc(var(--section-y) + .5rem) 0 calc(var(--section-y) - 1.5rem); }
.features, .benefits, .testimonials, .pricing, .faq, .tour, .download, .problem, .demo { padding: var(--section-y) 0; }

/* Grids */
.feature-grid, .benefit-grid, .testimonial-grid, .pricing-grid, .tour-grid { gap: var(--grid-gap); }

/* Cards */
.feature, .benefit, .testimonial, .plan, .solution-card, .demo-card, .tour-item, .download-card, .faq-item { padding: var(--card-pad); border-radius: var(--radius); }

/* Headings & text */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin: 0 0 .75rem; line-height: 1.2; }
.feature h3, .benefit .metric, .plan h3, .testimonial blockquote { margin-top: .25rem; }

/* Lists */
.list li { margin: .5rem 0; }

/* Fine-tune hero spacing */
.cta-group { margin: 1.25rem 0 1.5rem; }

/* Hero */
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: .25rem 0 .75rem; color: var(--slate-900); letter-spacing: -.02em; }
.subhead { color: var(--slate-600); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--blue-700); background: #e0edff; border: 1px solid #cbdcff; padding: .25rem .5rem; border-radius: 999px; font-weight: 600; font-size: .8rem; letter-spacing: .3px; }
.eyebrow .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; display: inline-block; }

.cta-group { display: flex; gap: .75rem; margin: 1rem 0 1.25rem; }

.signup { display: flex; gap: .5rem; align-items: center; background: #fff; padding: .4rem; border: 1px solid var(--slate-300); border-radius: 12px; width: min(520px, 100%); box-shadow: 0 2px 0 rgba(2,6,23,0.02); }
.signup input { flex: 1; min-width: 0; height: 44px; padding: 0 .9rem; border: 0; outline: none; font: inherit; color: var(--slate-800); border-radius: 10px; }
.signup.small input { height: 40px; }
.signup .btn { height: 44px; }
.signup.small .btn { height: 40px; }

.trust { display: grid; gap: .75rem; margin-top: 1rem; color: var(--slate-600); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 999px; font-size: .8rem; font-weight: 600; }
.integrations { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pill { font-size: .85rem; padding: .35rem .6rem; border-radius: 999px; border: 1px dashed var(--slate-300); color: var(--slate-600); }

/* Problem */
.problem-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.problem h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 .5rem; color: var(--slate-900); }
.problem .list { margin: 0; padding-left: 1.1rem; color: var(--slate-700); }
.problem .list li { margin:.4rem 0; }
.solution-card { background: linear-gradient(180deg, #f8fbff, #ffffff); border: 1px solid var(--slate-200); border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow); }
.list.check { list-style: none; padding-left: 0; }
.list.check li { padding-left: 1.4rem; position: relative; }
.list.check li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }

/* Features */
.features { padding: 4rem 0; background: linear-gradient(180deg, #fff, #f8fafc); }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 .5rem; color: var(--slate-900); }
.section-header p { color: var(--slate-600); margin: 0 auto; max-width: 720px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(2,6,23,0.08); }
.feat-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin: 0 auto .5rem; }

/* Benefits */
.benefits { padding: 4rem 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit { border: 1px solid var(--slate-200); border-radius: 14px; padding: 1rem; background: #fff; box-shadow: var(--shadow); }
.metric { display: flex; align-items: baseline; justify-content: center; gap: .5rem; }
.metric .value { font-size: 2rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.metric .label { color: var(--slate-600); font-weight: 600; }

/* Testimonials */
.testimonials { padding: 4rem 0; background: linear-gradient(180deg, #f8fafc, #fff); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); position: relative; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-weight: 700; margin: 0 auto .5rem; }
.testimonial blockquote { margin: 0 0 .5rem; color: var(--slate-800); font-weight: 500; }
.testimonial figcaption { color: var(--slate-600); font-size: .9rem; }

/* Pricing */
.pricing { padding: 4rem 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.plan .plan-tag { color: var(--slate-600); margin: 0 0 .75rem; }
.plan .price { display: flex; align-items: baseline; gap: .35rem; margin: .25rem 0 1rem; justify-content: center; }
.plan .amount { font-size: 2rem; font-weight: 800; color: var(--slate-900); }
.plan .period { color: var(--slate-500); }
.plan .list { margin: 0 0 1rem; color: var(--slate-700); }
.plan .btn { margin-top: auto; }
.plan-featured { border-color: var(--blue); box-shadow: 0 20px 40px rgba(37,99,235,0.12); }

/* FAQ */
.faq { padding: 4rem 0; background: linear-gradient(180deg, #fff, #f8fafc); }
.faq-list { width: min(900px, 100%); margin: 0 auto; display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--slate-200); border-radius: 12px; padding: .75rem 1rem; background: #fff; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--slate-800); }
.faq-item[open] { border-color: var(--blue); }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; padding-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand-mark { background: var(--blue); }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-links h4 { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
.footer-links ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.footer-links li { margin: .35rem 0; }
.footer-links h4 { margin-top: 0; color: #fff; }
.footer-contact h4 { margin-top: 0; color: #fff; }
.social { display: flex; gap: .5rem; margin-top: .5rem; }
.social-link { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #0f172a; border: 1px solid #243149; }
.footnote { border-top: 1px solid #1f2937; margin-top: 2rem; padding: 1rem 0; text-align: center; color: #94a3b8; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; bottom: 12px; left: 12px; right: 12px; display: none; gap: .5rem; z-index: 60; }

/* Legal pages */
.legal { padding: var(--section-y) 0; background: #fff; }
.legal .legal-inner { width: min(820px, 92%); margin: 0 auto; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 .75rem; color: var(--slate-900); text-align: center; }
.legal .lead { color: var(--slate-600); text-align: center; margin: 0 auto 1.5rem; max-width: 720px; }
.legal h2 { font-size: 1.25rem; margin: 1.25rem 0 .5rem; color: var(--slate-900); }
.legal p, .legal li { color: var(--slate-700); }
.legal ul { padding-left: 1.25rem; }
.legal .meta { color: var(--slate-500); font-size: .95rem; text-align: center; margin-bottom: 1rem; }

/* Icons (lightweight CSS icons) */
.icon { width: 18px; height: 18px; display: inline-block; background: currentColor; mask-size: contain; mask-repeat: no-repeat; mask-position: center; }
.icon-lock { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M6 10V8a6 6 0 1 1 12 0v2h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1Zm2 0h8V8a4 4 0 1 0-8 0v2Z%22/%3E%3C/svg%3E'); }
.icon-shield { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M12 2s7 3 8 3v6c0 5.55-3.84 10.74-8 12-4.16-1.26-8-6.45-8-12V5c1 0 8-3 8-3Z%22/%3E%3C/svg%3E'); }
.icon-check { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22m20.285 6.709-10.02 10.02-4.55-4.55 1.414-1.414 3.136 3.136 8.606-8.606 1.414 1.414Z%22/%3E%3C/svg%3E'); }
.icon-grid { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M3 3h8v8H3V3Zm10 0h8v8h-8V3ZM3 13h8v8H3v-8Zm10 0h8v8h-8v-8Z%22/%3E%3C/svg%3E'); }
.icon-credit { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 4h16V7H4v2Zm0 2v6h16v-6H4Zm2 2h6v2H6v-2Z%22/%3E%3C/svg%3E'); }
.icon-box { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M21 7.5 12 12 3 7.5 12 3l9 4.5Zm0 3.75L12 16.5 3 11.25V18l9 4.5 9-4.5v-6.75Z%22/%3E%3C/svg%3E'); }
.icon-mobile { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm0 2v16h10V4H7Zm3 14h4v2h-4v-2Z%22/%3E%3C/svg%3E'); }
.icon-graph { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M3 3h2v18H3V3Zm4 10h2v8H7v-8Zm4-6h2v14h-2V7Zm4 4h2v10h-2V11Zm4-6h2v16h-2V5Z%22/%3E%3C/svg%3E'); }
.icon-support { mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M12 2a9 9 0 0 1 9 9h-2a7 7 0 0 0-14 0H3a9 9 0 0 1 9-9Zm7 9h2v5a4 4 0 0 1-4 4h-3v-2h3a2 2 0 0 0 2-2v-5ZM3 11h2v5a4 4 0 0 0 4 4h3v-2H9a2 2 0 0 1-2-2v-5H3Z%22/%3E%3C/svg%3E'); }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Demo section */
.demo { padding: 4rem 0; background: #fff; }
.demo-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; border: 1px solid var(--slate-200); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); background: linear-gradient(180deg, #f8fbff, #ffffff); }
.demo-copy h2 { margin: 0 0 .5rem; color: var(--slate-900); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.demo-copy p { color: var(--slate-600); margin: 0 0 .5rem; }
.demo-form { display: grid; gap: .6rem; }
.demo-form .row { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.demo-form input { height: 44px; padding: 0 .9rem; border-radius: 10px; border: 1px solid var(--slate-300); background: #fff; color: var(--slate-800); font: inherit; }

/* Tour section */
.tour { padding: 4rem 0; background: linear-gradient(180deg, #fff, #f8fafc); }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tour-item { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; border: 1px solid var(--slate-200); border-radius: 16px; padding: 1rem; background: #fff; box-shadow: var(--shadow); align-items: center; }
.tour-copy h3 { margin: 0 0 .25rem; color: var(--slate-900); }
.device { border: 1px solid var(--slate-200); border-radius: 20px; padding: .5rem; background: #0b1220; box-shadow: inset 0 0 0 2px #111827; }

/* --- Device sizing refinements (hero + tour) --- */
/* Keep phone previews readable but not oversized across viewports */
.device, .hero-device {
  max-width: 380px; /* approx 6" phone preview on desktop */
  width: 100%;
  max-height: none;
  aspect-ratio: auto; /* let height be defined by image */
  padding: 6px; /* thinner bezel */
}
.device img, .hero-device img {
  width: 100%;
  height: auto; /* keep intrinsic aspect ratio */
  object-fit: contain; /* prevent cropping; no zoom beyond container */
  border-radius: 18px; /* match inner frame rounding */
  overflow: hidden;
}
@media (max-width: 1024px) {
  .device, .hero-device { max-width: 360px; }
}
@media (max-width: 768px) {
  .device, .hero-device { max-width: 340px; }
}
@media (max-width: 640px) {
  .device, .hero-device { max-width: min(300px, 80vw); }
}

/* Download */
.download { padding: 4rem 0; }
.download-card { border: 1px solid var(--slate-200); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); background: linear-gradient(180deg, #f8fbff, #ffffff); text-align: center; }
.badges-wrap { display: flex; gap: .75rem; justify-content: center; margin-top: .75rem; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--slate-300); color: var(--slate-800); text-decoration: none; font-weight: 700; }
.store-badge.play { background: #000; color: #fff; }
.store-badge.appstore { background: #111827; color: #fff; }

/* Hero device preview */
.hero-device { border: 1px solid var(--slate-200); border-radius: 20px; padding: 6px; background: #0b1220; box-shadow: inset 0 0 0 2px #111827, var(--shadow); }
.hero-device iframe {
  pointer-events: none; /* disable click/scroll to feel like a screenshot */
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}
.hero-device img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 14px;
  background: #fff;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  display: block;
}

/* Ensure rounded corners for screenshots inside device frames */
.device img, .hero-device img {
  border-radius: 18px; /* match inner frame rounding */
  overflow: hidden;
}

/* Ensure device frames behave like static screenshots */
.hero-visual { display: flex; justify-content: center; }
.device, .hero-device {
  margin-inline: auto;
  position: relative;
  overflow: visible; /* allow image to define its own height/rounding */
  /* removed max-width override to respect sizing rules above */
}
/* Legacy iframe sizing kept for backward compatibility but won’t affect images */
/* .device iframe, .hero-device iframe rules remain unchanged above */
@media (max-width: 1024px) {
  .hero-device iframe { height: 480px; }
}
@media (max-width: 640px) {
  .hero-device iframe { height: 420px; }
}

/* Typographic consistency & overflow handling */
.container, .feature, .benefit, .plan, .testimonial, .solution-card, .demo-card, .tour-item, .download-card, .faq-item, .footer-inner {
  overflow-wrap: break-word; /* was anywhere -> caused per-letter breaks */
  word-break: normal;
  hyphens: auto;
  white-space: normal;
}

/* Keep lists readable even in centered cards */
.list { text-align: left; }

/* Center alignment for card-like components */
.feature, .benefit, .plan, .testimonial, .download-card { text-align: center; }
.tour-copy { text-align: center; }

/* Unify heading/body sizes across cards */
.feature h3, .plan h3, .tour-copy h3, .solution-card h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.25;
}
.feature p, .tour-copy p, .benefit p, .testimonial blockquote, .plan .list, .download-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Prevent badge/pill overflow */
.pill { white-space: normal; overflow-wrap: anywhere; }

/* Center key UI bits inside cards */
.feat-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin: 0 auto .5rem; }

/* Footer refinements: prevent awkward wraps and improve responsiveness */
.footer-links h4 { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
.footer-inner { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.footer-links ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.footer-links li { margin: .35rem 0; }

@media (max-width: 860px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* --- Mobile navigation --- */
.header-inner { position: relative; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    display: none;
    flex-direction: column;
    gap: .75rem;
    padding: .75rem 1rem 1rem;
    z-index: 55;
  }
  .nav-menu.show { display: flex; }
}

/* --- Responsive layouts --- */
@media (max-width: 1024px) {
  .hero-inner, .problem-inner, .demo-card { grid-template-columns: 1fr; }
  .feature-grid, .benefit-grid, .testimonial-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-item { grid-template-columns: 1fr; }
  .demo-form .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid, .benefit-grid, .testimonial-grid, .pricing-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
}

/* Preserve image aspect ratio globally */
img { max-width: 100%; height: auto; display: block; }

/* Stack footer columns on mobile */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Reduce vertical padding on small screens for better fit */
@media (max-width: 640px) {
  .section { padding: var(--section-y-mobile) 0; }
  .hero { padding: calc(var(--section-y-mobile) + .5rem) 0 calc(var(--section-y-mobile) - 1rem); }
}
