/* shared umemo styles — loaded by every page */
:root {
  --brand: #3350FF;
  --ink: #0a0e1a;
  --bg: oklch(0.96 0.012 250);
  --muted: #6b7280;
  --sub: #4a5564;
}
html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; }

.root {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  position: relative; overflow: hidden;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.stage {
  width: 1920px; max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: flex; flex-direction: column;
}
.aurora1 {
  position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, #3350FF 0%, transparent 65%);
  filter: blur(80px); opacity: 0.14;
  pointer-events: none;
}
.aurora2 {
  position: absolute; bottom: -250px; left: -150px;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.85 0.13 240) 0%, transparent 65%);
  filter: blur(80px); opacity: 0.35;
  pointer-events: none;
}

/* Nav */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 32px;
  position: relative; z-index: 50;
}
.nav-inner {
  /* 3-column grid keeps the centre links optically centred regardless of
     how wide the left logo or right CTA cluster are. Outer columns equal-flex,
     so the whole bar spreads with the viewport — wider screen = wider gaps. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(13,17,23,0.06);
  padding: 10px 20px 10px 16px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  position: relative;
}
.nav-inner > .logo { justify-self: start; }
.nav-inner > .navlinks { justify-self: center; }
.nav-inner > .nav-right { justify-self: end; }
.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.04em;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
/* Gap grows with viewport: 40px at narrow desktop, ~96px at 1920px, capped at 120px. */
.navlinks { display: flex; gap: clamp(40px, 5vw, 120px); font-size: 16px; color: var(--sub); align-items: center; }
.navlinks .navitem {
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  display: flex; align-items: center; gap: 4px;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}
.navlinks .navitem:hover { color: var(--ink); }
.navlinks .navitem.is-active { color: var(--ink); }
.navlinks .navitem.is-active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.navlinks .navitem .caret {
  font-size: 9px; opacity: 0.6;
  transition: transform 0.18s;
}
.navlinks .has-menu:hover .caret { transform: rotate(180deg); }

.megamenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 240px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(13,17,23,0.08);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(13,17,23,0.12), 0 1px 3px rgba(0,0,0,0.04);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 100;
}
.megamenu::before {
  content: ''; position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.has-menu:hover .megamenu, .megamenu:hover {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mm-item {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.12s, color 0.12s;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
}
.mm-item:hover {
  background: oklch(0.97 0.012 250);
  color: var(--brand);
}
.cta {
  background: var(--ink); color: white; padding: 11px 22px;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-block;
}

/* Right cluster: language switcher + CTA */
.nav-right {
  display: flex; align-items: center; gap: 14px;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  font-family: ui-monospace, monospace; letter-spacing: 0.06em;
}
.lang-btn {
  background: none; border: none; padding: 4px 6px;
  color: inherit; cursor: pointer; font: inherit;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--ink); background: rgba(13,17,23,0.06); }
.lang-sep { color: rgba(13,17,23,0.18); user-select: none; }

/* Policy / legal pages */
.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 80px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sub);
}
.policy h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 36px 0 12px;
}
.policy p { margin: 0 0 14px; }
.policy ul { margin: 0 0 14px; padding-left: 20px; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--brand); text-decoration: none; }
.policy a:hover { text-decoration: underline; }
.policy strong { color: var(--ink); font-weight: 500; }
.policy .updated {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Site map columns */
.sitemap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
}
.sitemap-col h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13,17,23,0.08);
}
.sitemap-col ul { list-style: none; margin: 0; padding: 0; }
.sitemap-col li { margin-bottom: 8px; font-size: 15px; }
.sitemap-col a {
  color: var(--sub);
  text-decoration: none;
}
.sitemap-col a:hover { color: var(--brand); }

/* Page header (shared between non-home pages) */
.page-head {
  position: relative; z-index: 2;
  padding: 80px 64px 40px;
  text-align: left;
}
.page-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 88px; line-height: 1.0;
  letter-spacing: -0.045em;
  margin: 0 0 24px 0;
  color: var(--ink);
}
.page-title .accent { color: var(--brand); }
.page-lead {
  font-size: 22px; color: var(--sub);
  max-width: 800px; line-height: 1.55;
  margin: 0;
  letter-spacing: -0.005em;
}

.page-body {
  position: relative; z-index: 2;
  padding: 40px 64px 100px;
  flex: 1;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  color: var(--ink);
}
.section-eyebrow {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(13,17,23,0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 20px rgba(0,0,0,0.06);
}

/* Footer */
.foot {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(13,17,23,0.08);
  padding: 20px 32px;
  background: rgba(255,255,255,0.92);
}
.foot-inner {
  /* 3-column grid mirrors the nav: middle stays centred, outer columns share
     the remainder so spacing grows with viewport width. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-size: 12px; color: var(--muted);
}
.foot-inner > .foot-left  { justify-self: start; }
.foot-inner > .foot-links { justify-self: center; }
.foot-inner > .foot-region { justify-self: end; }
.foot-left { display: flex; align-items: center; gap: 10px; }
.foot-left .copy { letter-spacing: -0.005em; }
.foot-links { display: flex; align-items: center; gap: 12px; }
.foot-links a { cursor: pointer; color: inherit; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-links .sep { color: rgba(13,17,23,0.15); cursor: default; }
.foot-region { font-weight: 500; color: var(--ink); }

/* Hamburger + mobile menu — hidden on desktop, shown via @media below. */
.hamburger {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px; right: 16px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(13,17,23,0.08);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(13,17,23,0.12);
  padding: 14px 18px;
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .mm-section {
  font-family: 'Poppins', sans-serif;
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  padding: 12px 6px;
  text-decoration: none;
  border-bottom: 1px solid rgba(13,17,23,0.05);
}
.mobile-menu .mm-section:last-child { border-bottom: none; }
.mobile-menu .mm-sublinks {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 0 8px 14px;
  border-bottom: 1px solid rgba(13,17,23,0.05);
}
.mobile-menu .mm-sublinks a {
  font-size: 14px; color: var(--sub);
  padding: 7px 6px;
  text-decoration: none;
}
.mobile-menu .mm-sublinks a:hover { color: var(--brand); }


/* ============================================================
   TABLET / PHONE-LANDSCAPE — 641-1024px.
   Covers iPad portrait (768/810), iPhone in landscape (844-932),
   and small laptops. Partial collapse: 2-column grids stay 2,
   3+ collapse to 2, walk-step images go full-width above text.
   ============================================================ */
@media (min-width: 641px) and (max-width: 1024px) {
  .stage { width: 100%; max-width: 100%; }

  .nav { padding: 18px 20px; }

  .page-head { padding: 60px 28px 32px; }
  .page-title { font-size: clamp(48px, 8vw, 96px) !important; }
  .page-lead { font-size: 18px; }
  .page-body { padding: 0 28px 60px; }

  /* 2-column hero / two-col splits → single column */
  .hero,
  .zmgt-hero,
  .about-grid,
  .svc-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .field-row { grid-template-columns: 1fr 1fr !important; }

  /* Walkthrough: image + text stack */
  .walk { gap: 36px !important; }
  .walk-step,
  .walk-step.is-flipped {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .walk-step.is-flipped .walk-img-wrap { order: 0; }
  .walk-step.is-flipped .walk-text { order: 1; }

  /* Phone-frame demos */
  .phone-grid,
  .phone-grid.is-flipped {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .phone-grid.is-flipped .phone-wrap { order: 0; }
  .phone-grid.is-flipped .walk-text { order: 1; }
  .phone { max-width: 280px; }

  /* Multi-column grids that should keep some structure */
  .work-grid { grid-template-columns: 1fr 1fr !important; }
  .deliv-grid { grid-template-columns: 1fr 1fr !important; }
  .feat-grid { grid-template-columns: 1fr 1fr !important; }
  .agent-grid { grid-template-columns: 1fr 1fr !important; }
  .values-grid { grid-template-columns: 1fr 1fr !important; }
  .svc-grid { grid-template-columns: 1fr 1fr !important; }
  .tier-grid { grid-template-columns: 1fr 1fr !important; }
  .extras-grid { grid-template-columns: 1fr !important; }
  .faq-grid { grid-template-columns: 1fr 1fr !important; gap: 12px 24px !important; }
  .process { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .sitemap { grid-template-columns: 1fr 1fr !important; }
  .thumbs { grid-template-columns: 1fr 1fr 1fr !important; }

  /* CTA banners stack on narrow */
  .cta-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 36px !important;
    gap: 22px !important;
  }
  .cta-banner h2 { font-size: 32px !important; }
}

/* ============================================================
   MOBILE — single breakpoint at 640px.
   Strategy: stack everything to one column, scale down hero
   typography, hide nav links (keep logo + lang + CTA).
   Inputs forced to 16px so iOS Safari does not auto-zoom.
   ============================================================ */
@media (max-width: 640px) {
  .stage {
    width: 100%; max-width: 100%;
  }

  /* ---- Nav: logo + hamburger on left, lang + CTA on right ---- */
  .nav { padding: 14px 14px; }
  .nav-inner {
    grid-template-columns: auto auto 1fr;
    padding: 8px 12px 8px 12px;
    gap: 6px;
  }
  .nav-inner > .navlinks { display: none; }
  .nav-inner > .hamburger { justify-self: start; margin-left: 4px; }
  .nav-inner > .nav-right { justify-self: end; gap: 6px; }
  .hamburger { display: inline-flex; }
  .cta {
    padding: 9px 14px; font-size: 13px;
  }
  .lang-switch { font-size: 11px; }
  .lang-btn { padding: 3px 5px; }
  .lang-sep { margin: 0 1px; }

  /* ---- Page header ---- */
  .page-head {
    padding: 48px 20px 24px;
  }
  .page-eyebrow { font-size: 12px; margin-bottom: 14px; }
  .page-title {
    font-size: clamp(40px, 11vw, 72px) !important;
    line-height: 1.05;
    margin-bottom: 16px;
  }
  .page-lead {
    font-size: 16px !important;
    line-height: 1.55;
  }

  .page-body { padding: 0 20px 60px; }

  /* ---- Section titles inside body ---- */
  .section-eyebrow { font-size: 11px; margin-top: 8px; }
  .section-title {
    font-size: 26px !important;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  /* ---- Generic single-column collapses ---- */
  .work-grid,
  .hero,
  .zmgt-hero,
  .about-grid,
  .values-grid,
  .svc-grid,
  .svc-detail-grid,
  .deliv-grid,
  .tier-grid,
  .extras-grid,
  .faq-grid,
  .feat-grid,
  .agent-grid,
  .contact-grid,
  .field-row,
  .thumbs,
  .work-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Walkthrough steps — picture on top, text under, no flipping */
  .walk { gap: 28px !important; }
  .walk-step,
  .walk-step.is-flipped {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .walk-step.is-flipped .walk-img-wrap { order: 0; }
  .walk-step.is-flipped .walk-text { order: 1; }
  .walk-img-wrap { padding: 16px !important; }
  .walk-title { font-size: 24px !important; }
  .walk-desc { font-size: 15px !important; }
  .walk-num { margin-bottom: 10px !important; }

  /* Phone-frame walkthrough (work-app1 / work-app2) */
  .phone-grid,
  .phone-grid.is-flipped {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .phone-grid.is-flipped .phone-wrap { order: 0; }
  .phone-grid.is-flipped .walk-text { order: 1; }
  .phone-wrap { padding: 18px !important; }
  .phone { max-width: 240px; }

  /* Service detail: process row → 2x2 */
  .process {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* Start a project: option grid (project type / scope / start time)
     defaults to 3-4 cols inline → collapse to 2 cols on mobile. */
  .opt-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .opt { padding: 16px 14px !important; }
  .opt-title { font-size: 14px !important; }
  .opt-desc { font-size: 12px !important; }

  /* Pill row of budget options — already wraps, just tighten */
  .opt-pills { gap: 6px !important; }
  .opt-pill { font-size: 12px !important; padding: 8px 12px !important; }

  /* 4-step progress bar — let it scroll horizontally instead of overflow */
  .progress {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .progress::-webkit-scrollbar { display: none; }
  .step {
    flex: 0 0 auto;
    padding: 14px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Intake card: smaller padding */
  .intake { border-radius: 14px !important; }
  .intake-body { padding: 28px 22px !important; }
  .intake-title { font-size: 24px !important; }
  .intake-sub { font-size: 13px !important; margin-bottom: 22px !important; }

  /* Done state on submit success */
  .done-state { padding: 40px 24px !important; }
  .done-title { font-size: 28px !important; }
  .done-body { font-size: 15px !important; }

  /* CTA banner: stack the two halves */
  .cta-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 28px 24px !important;
    gap: 18px !important;
  }
  .cta-banner h2 { font-size: 26px !important; }
  .cta-banner-actions { flex-wrap: wrap; gap: 8px; }
  .cta-banner-btn { padding: 12px 20px !important; font-size: 14px !important; }

  /* Footer — single column, centred */
  .foot { padding: 18px 20px; }
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .foot-inner > .foot-left,
  .foot-inner > .foot-links,
  .foot-inner > .foot-region {
    justify-self: center;
  }
  .foot-left { flex-wrap: wrap; justify-content: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }

  /* Force form inputs to 16px so iOS Safari does not auto-zoom on focus. */
  input, textarea, select { font-size: 16px !important; }
}

