/* ═══════════════════════════════════════════
   MEETAROUND — SHARED DESIGN SYSTEM
   ═══════════════════════════════════════════ */

/* ── Variables & Reset ── */
:root {
  --logo-background: #42a4f54c;
  --logo-primary-dark-background: #2195f34f;
  --logo-glow: rgba(66, 164, 245, 0.161);
  --primary: #42A5F5;
  --primary-dark: #2196F3;
  --primary-glow: rgba(66, 165, 245, 0.3);
  --secondary: #FFB74D;
  --secondary-dark: #FFA726;
  --secondary-glow: rgba(255, 183, 77, 0.25);
  --bg-deep: #090C10;
  --bg-surface: #0D1219;
  --bg-card: #141B24;
  --bg-elevated: #1C2432;
  --text-primary: #E4EEF8;
  --text-secondary: #8AA3BB;
  --text-muted: #4A6070;
  --border: rgba(66, 165, 245, 0.12);
  --border-hover: rgba(66, 165, 245, 0.3);
  --gradient-hero: linear-gradient(165deg, #090C10 0%, #0D1825 40%, #090C10 100%);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-accent: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* Noise texture overlay
   FIX: was z-index:9999 — a position:fixed element sitting above ALL compositor
   layers forces Chrome to re-include it in every repaint pass. Lowered to z-index:1.
   pointer-events:none means interactivity is unaffected regardless of z-index. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  /* Own GPU layer so it never triggers repaints on surrounding content */
  transform: translateZ(0);
  will-change: transform;
}

/* ── Utilities ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.section-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Navigation ──
   FIX: The original approach added backdrop-filter only in .nav.scrolled and .nav.nav-solid.
   Adding/removing backdrop-filter dynamically forces Chrome to promote then destroy the
   nav's compositor layer on every scroll past the 40px threshold — this is the primary
   "sudden flicker" trigger site-wide.

   Solution: backdrop-filter is now ALWAYS active on .nav (layer created once at page load,
   never destroyed). Only background-color and border change on scroll.

   FIX: transition:all catches layout-triggering properties (width, height, padding).
   Replaced with explicit properties so only visual/compositor-safe values animate. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  /* Always-on backdrop-filter: one compositor layer, created once, never recreated */
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  /* Only transition safe visual properties, never 'all' */
  transition: background-color 0.4s ease, border-bottom-color 0.4s ease, box-shadow 0.4s ease;
  /* Pre-promote to GPU layer */
  transform: translateZ(0);
  will-change: background-color;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Scroll-triggered state: only change background-color and border */
.nav.scrolled {
  background: rgba(9, 12, 16, 0.85);
  border-bottom: 1px solid var(--border);
}

/* Force background on inner pages */
.nav.nav-solid {
  background: rgba(9, 12, 16, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--logo-background), var(--logo-primary-dark-background));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #090C10;
  box-shadow: 0 4px 20px var(--logo-glow);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.btn-login-nav {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-login-nav:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-download-nav {
  font-size: 0.85rem;
  font-weight: 600;
  color: #090C10;
  background: var(--primary);
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-download-nav:hover {
  background: #6BBCF8;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

/* Mobile menu
   FIX: adding will-change:opacity so Chrome pre-promotes the layer before the
   open toggle, preventing a compositor layer creation flash when menu opens. */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(9, 12, 16, 0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* Pre-promote so open/close doesn't flash-create a compositor layer */
  transform: translateZ(0);
  will-change: opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.mobile-menu a:hover { color: var(--primary); }

.mobile-close {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ── Shared Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #090C10;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-primary:hover {
  background: #6BBCF8;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--primary-glow);
}

.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

/* ── Store Buttons ── */
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 28px;
  transition: all 0.3s ease;
}

.store-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.store-btn-icon { font-size: 1.6rem; }
.store-btn-text { text-align: left; }
.store-btn-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 400; }

.store-btn-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1px;
}

/* ── Footer ── */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-copyright { font-size: 0.78rem; color: var(--text-muted); }

.footer-socials { display: flex; gap: 16px; }

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-social:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  background: rgba(66, 165, 245, 0.08);
}

/* ── Page Header (shared by inner pages) ── */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.page-header::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.06) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.page-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 165, 245, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 165, 245, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.page-header .container { position: relative; z-index: 2; }

/* ── Shared Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(66, 165, 245, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* prevent overlay from blocking child link clicks */
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-login-nav { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .page-header { padding: 140px 0 60px; }
}

/* ═══════════════════════════════════════════
   ADDITIONAL SHARED STYLES FOR CSHTML PAGES
   ═══════════════════════════════════════════ */

/* ── Features Header (shared) ── */
.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.features-header .section-label { justify-content: center; }
.features-header .section-label::before { display: none; }
.features-header .section-subtitle { margin: 0 auto; }

/* ── Shared Form Styles ── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; margin-top: 8px; }

/* ── Contact Form Card ── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ── Status Messages ── */
.alert-success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #66BB6A;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #f44336;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Legal Document Styles ── */
.legal-document-wrapper { padding: 100px 0 80px; }

.legal-content-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  max-height: 70vh;
  overflow-y: auto;
}

.legal-content-card h1, .legal-content-card h2, .legal-content-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.legal-content-card h1 { font-size: 1.6rem; }
.legal-content-card h2 { font-size: 1.3rem; }
.legal-content-card h3 { font-size: 1.1rem; }

.legal-content-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}

.legal-content-card ul, .legal-content-card ol {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content-card a { color: var(--primary); transition: opacity 0.3s ease; }
.legal-content-card a:hover { opacity: 0.8; }

.legal-content-card::-webkit-scrollbar { width: 6px; }
.legal-content-card::-webkit-scrollbar-track { background: var(--bg-deep); border-radius: 3px; }
.legal-content-card::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ── Centered Page (login, reset password, verify, error)
   FIX: ::before and ::after pseudo-elements run floatOrb (transform:translate+scale)
   without their own GPU layer, causing layout invalidation on surrounding content
   on Login, ResetPassword, VerifyAccount pages. Added will-change + translateZ(0)
   to isolate both animations. */
.centered-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 100px 32px 60px;
}

.centered-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.06) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatOrb 12s ease-in-out infinite;
  /* Own layer prevents the animation from causing repaints outside .centered-page */
  will-change: transform;
  transform: translateZ(0);
}

.centered-page::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 183, 77, 0.04) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: floatOrb 15s ease-in-out infinite reverse;
  /* Own layer prevents the animation from causing repaints outside .centered-page */
  will-change: transform;
  transform: translateZ(0);
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.centered-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 165, 245, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 165, 245, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 80%);
}

.centered-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
}

.centered-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.6s ease forwards;
}

.centered-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #090C10;
  box-shadow: 0 8px 32px var(--primary-glow);
}

.centered-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.centered-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  animation: fadeSlideUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.centered-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.centered-card .centered-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 300;
}

.centered-back {
  text-align: center;
  margin-top: 24px;
  animation: fadeSlideUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.centered-back a {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.centered-back a:hover { color: var(--text-primary); }

/* ── Error Page ── */
.error-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

/* ── Additional Responsive ── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .legal-content-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .centered-card { padding: 32px 24px; }
  .centered-page { padding: 100px 20px 40px; }
}

/* ═══════════════════════════════════════════
   BUG FIXES — applied below to avoid touching existing rules
   ═══════════════════════════════════════════ */

/* ── Bug 4: Section breathing room ──
   Adds vertical margin between adjacent <section> elements so they
   don't bleed directly into each other. */
section {
  margin-bottom: 80px;
}

/* Reset bottom margin on the very last section so there's no gap before
   the footer, and on sections that already provide their own spacing. */
section:last-of-type,
.download-hero,
.centered-page {
  margin-bottom: 0;
}

/* ── Bug 3: Hero phone mockup on mobile ──
   The .hero-phone column is hidden by the view's responsive styles.
   On small screens it should:
     1. Be visible (override display:none)
     2. Appear BEFORE the copy text (order: -1 in the flex hero layout) */
@media (max-width: 768px) {
  .hero-phone {
    display: block !important;
    order: -1;
    /* Constrain height so it doesn't dominate the viewport */
    max-height: 340px;
    overflow: hidden;
    margin-bottom: 32px;
  }

  /* If the hero section uses flex/grid, push the phone to the top */
  .hero-content,
  .hero-grid,
  .hero-inner {
    display: flex;
    flex-direction: column;
  }
}
