:root {
  --blue: #1CB0F6;
  --blue-dark: #1899D6;
  --blue-deep: #0E7CB0;
  --blue-soft: #EAF7FE;
  --green: #58CC02;
  --green-dark: #46A302;
  --text: #4B4B4B;
  --text-light: #777777;
  --border: #E5E5E5;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --red: #FF4B4B;
  --red-dark: #EA2B2B;
  --yellow: #FFC800;
  --yellow-dark: #E6A800;
  --purple: #CE82FF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow Semi Condensed', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }

/* ---------- Motion ---------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { 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; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { height: 28px; width: auto; display: block; }
.brand-sub {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--blue);
  border-bottom: 3px solid var(--blue-dark);
  padding: 3px 10px;
  border-radius: 999px;
}

.header-actions { display: flex; gap: 10px; align-items: center; }

/* On small screens, stack "for Business" under the Hangouts logo so the
   brand never squishes the header. */
@media (max-width: 640px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand img { height: 22px; }
  .brand-sub { font-size: 11px; padding: 2px 8px; border-bottom-width: 2px; }
}

/* ---------- Buttons (3D pressed style) ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: filter 0.15s ease, transform 0.08s ease;
  text-align: center;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px !important; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-blue { background: var(--blue); border-bottom: 4px solid var(--blue-dark); }
.btn-green { background: var(--green); border-bottom: 4px solid var(--green-dark); }
.btn-red { background: var(--red); border-bottom: 4px solid var(--red-dark); }
.btn-white {
  background: #fff;
  color: var(--blue);
  border-bottom: 4px solid rgba(0,0,0,0.15);
}
.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border);
}
.btn-sm { font-size: 14px; padding: 8px 16px; border-radius: 12px; }
.btn-lg { font-size: 18px; padding: 15px 30px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card-hover { transition: transform 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 55%, var(--blue-deep) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }

.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.08; margin-bottom: 16px; animation: slideUp 0.7s ease both; }
.hero h1 .accent { color: var(--yellow); }
.hero p.sub { font-size: 20px; opacity: 0.95; margin-bottom: 28px; animation: slideUp 0.7s ease 0.15s both; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; animation: slideUp 0.7s ease 0.3s both; }
@media (max-width: 860px) { .hero-cta { justify-content: center; } }

.hero-stats { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; animation: slideUp 0.7s ease 0.45s both; }
@media (max-width: 860px) { .hero-stats { justify-content: center; } }
.hero-stat .num { font-size: 28px; font-weight: 800; }
.hero-stat .lbl { font-size: 13px; opacity: 0.85; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Static phone demo in hero (mirrors the actual app screen) */
.hero-phone-wrap { display: flex; justify-content: center; animation: popIn 0.7s ease 0.2s both; }
.hero-phone {
  width: 320px;
  background: #F7F7F7;
  border-radius: 36px;
  border: 3px solid rgba(0,0,0,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  color: var(--text);
}

/* ---------- App-accurate UI replicas ---------- */
.app-screen {
  background: #F7F7F7;
  display: flex;
  flex-direction: column;
  font-family: 'Barlow Semi Condensed', sans-serif;
  color: #4B4B4B;
}
.app-topbar {
  background: #fff;
  border-bottom: 2px solid #E5E5E5;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-topbar img { height: 24px; width: auto; }
.app-topbar .top-icons { display: flex; gap: 14px; font-size: 18px; color: #AFAFAF; }
.app-feed { flex: 1; padding: 14px 12px; overflow-y: auto; position: relative; }
.app-tabbar {
  background: #fff;
  border-top: 2px solid #E5E5E5;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 14px;
}
.app-tab { font-size: 20px; padding: 6px 16px; border-radius: 14px; color: #AFAFAF; }
.app-tab.active { background: rgba(28, 176, 246, 0.12); color: var(--blue); }
.app-fab {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 52px; height: 52px;
  border-radius: 26px;
  background: var(--blue);
  border-bottom: 5px solid var(--blue-dark);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Feed event card — radius 24, 2px border, 6px bottom edge like the app */
.app-card {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-bottom-width: 6px;
  border-radius: 24px;
  padding: 16px 14px 12px;
  margin-bottom: 14px;
  position: relative;
}
.app-card .host-badge {
  position: absolute;
  top: -12px; left: -6px;
  display: flex; align-items: center; gap: 6px;
  background: #fff;
  border: 2px solid #E5E5E5;
  border-bottom-width: 4px;
  border-radius: 16px;
  padding: 3px 10px 3px 4px;
  font-size: 12px;
  font-weight: 800;
}
.app-card .host-badge .mini-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 800;
}
.app-card h3 { font-size: 19px; font-weight: 800; margin: 4px 0 6px; color: #4B4B4B; }
.app-card .detail-row { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #777; margin-bottom: 4px; font-weight: 600; }
.app-card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.avatar-pile { display: flex; }
.avatar-pile .av {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.avatar-pile .av:first-child { margin-left: 0; }

/* In-app business ad card (compact, same gray outline as event cards) */
.app-ad-card {
  background: #fff;
  border: 2px solid var(--border);
  border-bottom-width: 5px;
  border-radius: 20px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.app-ad-card .thumb {
  width: 44px; height: 44px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #E5E5E5;
  background: #F7F7F7;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.app-ad-card h4 { font-size: 15.5px; font-weight: 800; color: #4B4B4B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ad-card .tags { display: flex; gap: 5px; margin-top: 3px; }

/* Business detail (opened ad) screen */
.app-detail-hero {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  position: relative;
  overflow: hidden;
}
.app-detail-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Square, swipeable 3-photo carousel at the top of the business page */
.hero-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  height: 100%;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-carousel .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
}
.hero-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
  pointer-events: none;
}
.hero-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
}
.hero-dots span.on { background: #fff; }

/* Free-for-3-months banner under the hero */
.free-banner {
  background: var(--yellow, #FFC800);
  border-bottom: 4px solid #E6B400;
  text-align: center;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 800;
  color: #4B4B4B;
}
.free-banner .pill {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  margin-right: 8px;
  font-size: 14px;
  color: #E08600;
  vertical-align: 1px;
}
.app-detail-body { padding: 16px 14px; background: #F7F7F7; flex: 1; }
.app-info-card {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-bottom-width: 6px;
  border-radius: 24px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.app-info-card .icon-sq {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.app-info-card .lbl { font-size: 12px; font-weight: 800; color: #AFAFAF; text-transform: uppercase; letter-spacing: 0.5px; }
.app-info-card .val { font-size: 15px; font-weight: 700; color: #4B4B4B; }
.app-back-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 2px solid #E5E5E5;
  font-weight: 800; font-size: 16px;
}
.app-back-row .chev { color: var(--blue); font-size: 22px; font-weight: 800; }

/* Phone frame used for dashboard previews */
.preview-phone {
  width: 320px;
  max-width: 100%;
  border: 3px solid #4B4B4B;
  border-radius: 36px;
  overflow: hidden;
  background: #F7F7F7;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.preview-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.preview-toggle button {
  font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff; color: var(--text-light);
  cursor: pointer;
}
.preview-toggle button.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* ---------- "What is Hangouts" story flow ---------- */
.story-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.story-step {
  background: #fff;
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  border-radius: 18px;
  padding: 20px 18px;
  transition: transform 0.2s ease;
}
.story-step:hover { transform: translateY(-4px); }
.story-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
}
.story-icon .ic { width: 22px; height: 22px; }
.story-step .story-label { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.story-step p { font-size: 14px; line-height: 1.5; color: var(--text-light); font-weight: 500; }
@media (max-width: 900px) {
  .story-flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .story-step { padding: 16px 14px; }
}
@media (max-width: 520px) {
  .story-flow { grid-template-columns: 1fr; }
}

.what-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid;
  border-bottom-width: 4px;
  background: #fff;
}
.chip .ic { width: 15px; height: 15px; stroke: currentColor; }
.chip-blue { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.chip-green { color: var(--green-dark); border-color: var(--green); background: rgba(88,204,2,0.1); }
.chip-purple { color: #A560E8; border-color: #CE82FF; background: rgba(206,130,255,0.12); }
.chip-orange { color: #E08600; border-color: #FF9600; background: rgba(255,150,0,0.1); }
.chip-red { color: var(--red); border-color: var(--red); background: rgba(255,75,75,0.08); }

/* ---------- Inline SVG icons (replace emojis in app replicas) ---------- */
.ic {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.app-topbar .top-icons { display: flex; gap: 14px; color: #AFAFAF; align-items: center; }
.app-topbar .top-icons .ic { width: 21px; height: 21px; }
.app-card .detail-row .ic { width: 15px; height: 15px; color: #AFAFAF; }
.app-tab .ic { width: 24px; height: 24px; }
.app-fab .ic { width: 26px; height: 26px; stroke-width: 3; }
.app-ad-card .thumb .ic { width: 22px; height: 22px; color: var(--blue); }
.app-detail-hero .ic { width: 52px; height: 52px; color: #fff; stroke-width: 1.6; }
.app-info-card .icon-sq .ic { width: 22px; height: 22px; }
.app-back-row .ic { width: 22px; height: 22px; color: var(--blue); stroke-width: 2.6; }

/* ---------- Business portal nav (dashboard/analytics) ---------- */
.biz-nav {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  border-bottom: 2px solid var(--border);
  background: #fff;
}
.biz-nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-light);
  padding: 12px 16px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.biz-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.biz-nav a:hover { color: var(--blue); }

.details-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) { .details-layout { grid-template-columns: 1fr; } }

/* Location autocomplete */
.loc-search { position: relative; }
.loc-results {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  margin-top: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  display: none;
}
.loc-results.open { display: block; }
.loc-result {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.loc-result:last-child { border-bottom: none; }
.loc-result:hover { background: var(--blue-soft); }
.loc-result .nm { font-weight: 700; font-size: 15px; }
.loc-result .ad { font-size: 13px; color: var(--text-light); }
.loc-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-soft);
  border: 2px solid var(--blue);
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 8px;
}
.loc-selected .nm { font-weight: 800; font-size: 15px; }
.loc-selected .ad { font-size: 13px; color: var(--text-light); }
.loc-selected button {
  margin-left: auto;
  background: none; border: none;
  color: var(--red); font-weight: 800; font-size: 16px;
  cursor: pointer; font-family: inherit;
}

/* ---------- Analytics page ---------- */
.analytics-layout { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.range-pills { display: flex; gap: 8px; margin-bottom: 20px; }
.range-pill {
  font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff; color: var(--text-light);
  cursor: pointer;
}
.range-pill.active { border-color: var(--blue); color: #fff; background: var(--blue); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi-card { padding: 18px 16px; }
.kpi-card .kpi-label { font-size: 12px; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.kpi-card .kpi-value { font-size: 32px; font-weight: 800; line-height: 1; }
.kpi-card .kpi-sub { font-size: 12px; color: var(--text-light); margin-top: 6px; font-weight: 600; }
.kpi-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.chart-card { margin-bottom: 22px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.chart-head h2 { font-size: 19px; font-weight: 800; }
.chart-legend { display: flex; gap: 16px; font-size: 13px; font-weight: 700; color: var(--text-light); }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-svg { width: 100%; height: 240px; display: block; }

.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.funnel-row .f-label { width: 130px; font-size: 14px; font-weight: 700; }
.funnel-row .f-track { flex: 1; height: 26px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.funnel-row .f-fill { height: 100%; border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-size: 12px; font-weight: 800; min-width: 34px; transition: width 0.8s ease; }

.table-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-card th { text-align: left; font-size: 12px; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 10px; border-bottom: 2px solid var(--border); }
.table-card td { padding: 9px 10px; border-bottom: 1px solid var(--border); font-weight: 600; }
.table-card tr:last-child td { border-bottom: none; }
.empty-analytics {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-light);
}
.empty-analytics .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- In-app style cards (used in hero + examples) ---------- */
.hangout-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.hangout-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.hangout-card .meta { font-size: 13px; color: var(--text-light); margin-bottom: 7px; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.tag-owner { background: var(--blue-soft); color: var(--blue); border: 1.5px solid var(--blue); }
.tag-nearby { background: var(--blue-soft); color: var(--blue); border: 1.5px solid var(--blue); }
.tag-ad { background: var(--bg-soft); color: var(--text-light); border: 1.5px solid var(--border); }
.tag-going { background: #F0FFE8; color: var(--green-dark); border: 1.5px solid var(--green); }

.ad-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 9px 13px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease;
}
.ad-card:hover { transform: scale(1.02); }
.ad-card .thumb {
  width: 42px; height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg-soft);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ad-card .ad-body { min-width: 0; }
.ad-card h4 { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-card .tags { display: flex; gap: 5px; margin-top: 3px; }

/* ---------- Sections ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: 56px 24px; }
.section-title { font-size: 34px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub { font-size: 17px; color: var(--text-light); text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-band { background: var(--bg-soft); }
.section-band-blue { background: var(--blue-soft); }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step-card { text-align: center; position: relative; padding-top: 30px; }
.step-num {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  border-bottom: 4px solid var(--blue-dark);
  color: #fff;
  font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step-card .step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #fff;
}
.step-card .step-icon .ic { width: 24px; height: 24px; }
.step-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.step-card p { font-size: 15px; color: var(--text-light); line-height: 1.5; }

/* Benefit split rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}
.split:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .visual { order: -1; } }
.split h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.split h3 .hl { color: var(--blue); }
.split p { font-size: 16px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.split ul { list-style: none; margin-top: 8px; }
.split li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: 15px; }
.split li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

.visual-frame {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

/* Mini analytics demo */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mini-stat { text-align: center; border: 2px solid var(--border); border-radius: 14px; padding: 14px 6px; }
.mini-stat .v { font-size: 26px; font-weight: 800; }
.mini-stat .v.blue { color: var(--blue); }
.mini-stat .v.green { color: var(--green); }
.mini-stat .v.yellow { color: var(--yellow-dark); }
.mini-stat .l { font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bar-row .day { width: 34px; font-size: 12px; font-weight: 700; color: var(--text-light); }
.bar-track { flex: 1; height: 14px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue); border-radius: 999px; width: 0; transition: width 1s ease; }

/* Radius visual */
.radius-visual { position: relative; height: 260px; display: flex; align-items: center; justify-content: center; }
.radius-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--blue);
  opacity: 0.5;
}
.radius-ring.r1 { width: 110px; height: 110px; animation: pulseSoft 3s ease-in-out infinite; }
.radius-ring.r2 { width: 190px; height: 190px; animation: pulseSoft 3s ease-in-out 0.4s infinite; }
.radius-ring.r3 { width: 260px; height: 260px; animation: pulseSoft 3s ease-in-out 0.8s infinite; }
.radius-pin {
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wiggle 2.5s ease-in-out infinite;
}
.radius-pin .ic { width: 26px; height: 26px; }
.radius-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.radius-dot .ic { width: 16px; height: 16px; }

.group-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.group-row { display: flex; gap: 10px; }
.group-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.group-dot .ic { width: 20px; height: 20px; }
.group-arrow { width: 28px; height: 28px; color: var(--text-light); transform: rotate(90deg); }
.group-store {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.group-store .ic { width: 32px; height: 32px; }

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}
.cta-band h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { font-size: 17px; opacity: 0.95; margin-bottom: 24px; }

.site-footer {
  border-top: 2px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}
.site-footer .links { margin-bottom: 10px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 13px; color: var(--text-light); margin-top: 4px; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }

.form-error {
  display: none;
  background: #FFF0F0;
  border: 2px solid var(--red);
  color: var(--red-dark);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.form-success {
  display: none;
  background: #F0FFE8;
  border: 2px solid var(--green);
  color: var(--green-dark);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Auth pages ---------- */
.auth-page {
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(150deg, var(--blue) 0%, #1899D6 100%);
  position: relative;
  overflow: hidden;
}
.auth-blob {
  position: absolute;
  width: 140%;
  left: -20%;
  height: 90px;
  border-radius: 999px;
  opacity: 0.85;
  pointer-events: none;
  transform: rotate(-14deg);
}
.auth-blob.b-red { background: linear-gradient(90deg, #FF7B7B, #FF4B4B); top: -10px; }
.auth-blob.b-yellow { background: linear-gradient(90deg, #FFDE59, #FFC800); bottom: 40px; }
.auth-blob.b-green { background: linear-gradient(90deg, #7BE335, #58CC02); height: 60px; top: 24%; opacity: 0.7; }
.auth-back {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  font-size: 15px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.08);
  border-bottom-width: 4px;
}
.auth-back:hover { transform: translateY(-1px); }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.1);
  border-bottom-width: 6px;
  border-radius: 24px;
  padding: 30px;
  animation: popIn 0.4s ease both;
  position: relative;
  z-index: 2;
}
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-light); font-size: 15px; margin-bottom: 20px; }
.auth-switch { text-align: center; font-size: 14px; margin-top: 16px; }
.auth-switch a { font-weight: 700; }
@media (max-width: 640px) {
  .auth-page { padding: 74px 14px 28px; align-items: flex-start; }
  .auth-blob { height: 64px; transform: rotate(-18deg); }
  .auth-blob.b-red { top: -6px; }
  .auth-blob.b-yellow { bottom: 24px; }
  .auth-blob.b-green { height: 44px; top: 27%; }
  .auth-back { top: 14px; left: 14px; font-size: 14px; padding: 8px 15px 8px 12px; }
  .auth-card { padding: 22px 18px; border-radius: 20px; }
  .auth-card h1 { font-size: 22px; }
  .auth-card .auth-sub { font-size: 14px; }
}

/* Location boxes on the business details page */
.loc-box {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.loc-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.loc-box-head .nm { font-weight: 700; font-size: 15px; }
.loc-remove {
  border: none;
  background: none;
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
}

/* ---------- Dashboard ---------- */
.dash-layout { max-width: 900px; margin: 0 auto; padding: 24px; }
.dash-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-tab {
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-light);
  cursor: pointer;
}
.dash-tab.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card { text-align: center; padding: 24px 16px; }
.stat-value { font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-value.green { color: var(--green); }
.stat-value.blue { color: var(--blue); }
.stat-value.yellow { color: var(--yellow-dark); }
.stat-label { font-size: 14px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

.image-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.image-slot {
  width: 120px; height: 120px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 13px; font-weight: 600;
  position: relative;
  overflow: hidden;
}
.image-slot img { width: 100%; height: 100%; object-fit: cover; }
.image-slot .remove-img {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red);
  border: none; border-bottom: 2px solid var(--red-dark);
  color: #fff; font-weight: 800; font-size: 12px;
  cursor: pointer;
}

/* ---------- App simulation ---------- */
.sim-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .sim-layout { grid-template-columns: 1fr; } }

.phone-frame {
  width: 390px;
  max-width: 100%;
  margin: 0 auto;
  border: 3px solid var(--text);
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  height: 720px;
  display: flex;
  flex-direction: column;
}
.phone-header { padding: 18px 16px 12px; border-bottom: 2px solid var(--border); }
.phone-header h1 { font-size: 24px; font-weight: 800; }
.phone-feed { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg-soft); position: relative; }

.ad-detail {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  overflow-y: auto;
  display: none;
}
.ad-detail.open { display: block; }
.ad-detail-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; background: #fff;
}
.ad-detail-header button {
  background: none; border: none; font-size: 22px;
  color: var(--blue); cursor: pointer; font-family: inherit; font-weight: 800;
}
.ad-detail-body { padding: 16px; }
.ad-images { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.ad-images img {
  width: 160px; height: 120px;
  border-radius: 14px; object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.ad-images .img-placeholder {
  width: 160px; height: 120px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 13px; flex-shrink: 0;
}

.sim-controls h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.loc-presets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.loc-preset {
  font-family: inherit; font-weight: 700; font-size: 14px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff; color: var(--text);
  cursor: pointer;
}
.loc-preset.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

.create-sheet {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 20;
  display: none;
  align-items: flex-end;
}
.create-sheet.open { display: flex; }
.create-sheet-inner {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  width: 100%;
  max-height: 85%;
  overflow-y: auto;
}
.create-sheet-inner h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin: 24px 0 8px; }
.legal-page p { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.legal-placeholder {
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  color: var(--text-light);
  font-style: italic;
}

.legal-page ul { margin: 0 0 12px 22px; }
.legal-page li { font-size: 16px; line-height: 1.6; margin-bottom: 6px; }
