/* QueueMe public site — a route-and-rhythm system, not a generic card template. */
:root {
  --qm-canvas: #fffdf8;
  --qm-surface: #ffffff;
  --qm-workspace: #f3f8f6;
  --qm-ink: #17324d;
  --qm-muted: #65788b;
  --qm-line: #dce8e6;
  --qm-blue: #1f57c3;
  --qm-blue-deep: #163d84;
  --qm-mint: #b9e4d4;
  --qm-mint-deep: #23876e;
  --qm-mint-soft: #e8f6ef;
  --qm-coral: #ef8269;
  --qm-shadow: 0 20px 50px rgba(23, 50, 77, .10);
}

body { background: var(--qm-canvas); color: var(--qm-ink); }
.shell { max-width: 1240px; }

/* Navigation stays quiet so the route illustration owns the opening. */
.topbar {
  background: rgba(255, 253, 248, .88);
  border-bottom-color: rgba(23, 50, 77, .08);
}
.topbar .shell { min-height: 78px; }
.brand { gap: 12px; }
.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 15px 15px 15px 7px;
  background: var(--qm-blue);
  box-shadow: 0 10px 22px rgba(31, 87, 195, .20);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--qm-canvas);
  border-radius: 50%;
  background: var(--qm-mint-deep);
}
.brand strong { color: var(--qm-ink); letter-spacing: -.035em; }
.brand span { color: var(--qm-muted); }
.nav { gap: 5px; }
.nav a { color: #536b7b; border-radius: 11px; }
.nav > a:not(.btn):hover { color: var(--qm-blue); background: #edf4ff; }
.nav .btn, .hero-actions .btn, .store-actions .btn, .cta .btn {
  min-height: 44px;
  border-radius: 13px;
}
.btn-primary {
  color: #fff;
  background: var(--qm-blue);
  box-shadow: 0 10px 20px rgba(31, 87, 195, .18);
}
.btn-primary:hover { background: var(--qm-blue-deep); }
.btn-secondary { color: var(--qm-ink); border-color: var(--qm-line); background: #fff; }
.btn-secondary:hover { border-color: #bed4e5; background: #f4f8fd; }

/* The supplied queue-route illustration is the hero; the left edge fades into copy only. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  overflow: hidden;
  padding: 84px 0 74px;
  border-bottom: 0;
  background: var(--qm-canvas);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/queueme-hero-queue-20260727.png") right center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--qm-canvas) 0%, var(--qm-canvas) 35%, rgba(255, 253, 248, .92) 47%, rgba(255, 253, 248, 0) 67%);
}
.hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(430px, .9fr);
  min-height: 530px;
  align-items: center;
  gap: 28px;
}
.hero-grid > :first-child { position: relative; z-index: 1; max-width: 650px; }
.hero-grid > :first-child::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -68px;
  width: 148px;
  height: 54px;
  border: 2px solid rgba(35, 135, 110, .34);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 58px 0 0;
  transform: rotate(-8deg);
}
.hero-grid > :first-child::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -78px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--qm-coral);
  box-shadow: -34px -21px 0 -1px var(--qm-mint-deep), -68px -30px 0 1px var(--qm-blue);
}
.hero .eyebrow { display: none; }
h1, .section-head h2 { color: var(--qm-ink); letter-spacing: -.055em; }
h1 { max-width: 690px; margin-top: 0; font-size: clamp(44px, 5.35vw, 68px); line-height: 1.06; }
.hero p { max-width: 570px; color: var(--qm-muted); font-size: 18px; line-height: 1.88; }
.hero-actions { gap: 11px; margin-top: 30px; }
.hero-stats {
  display: flex;
  align-items: stretch;
  max-width: 600px;
  gap: 0;
  margin-top: 42px;
}
.stat {
  position: relative;
  flex: 1;
  padding: 2px 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stat:first-child { padding-left: 0; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--qm-mint-deep), rgba(35, 135, 110, 0));
}
.stat strong { color: var(--qm-blue); font-size: 25px; }
.stat span { color: var(--qm-muted); line-height: 1.55; }
.queue-hero-art { display: none; }
.hero .showcase { display: none; }

/* Sections alternate open editorial bands, route notes, and operational data. */
.band { padding: 104px 0; border-bottom: 0; background: var(--qm-surface); }
.band-muted { background: var(--qm-workspace); }
.section-head { position: relative; gap: 12px; max-width: 760px; margin-bottom: 38px; }
.section-head .eyebrow {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #cbe5da;
  color: var(--qm-mint-deep);
  background: var(--qm-mint-soft);
}
.section-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.16; }
.section-head p, .card p, .formula-box p, .showcase-card p { color: var(--qm-muted); }

#pain .grid-3 { gap: 22px; align-items: stretch; }
#pain .card {
  position: relative;
  min-height: 246px;
  padding: 30px 28px 26px;
  overflow: hidden;
  border: 1px solid var(--qm-line);
  border-radius: 25px 25px 25px 9px;
  box-shadow: none;
}
#pain .card::after {
  content: "";
  position: absolute;
  right: -29px;
  bottom: -34px;
  width: 142px;
  height: 142px;
  border: 20px solid rgba(31, 87, 195, .08);
  border-radius: 50%;
}
#pain .card:nth-child(2) { transform: translateY(28px); background: #f2f9f6; }
#pain .card:nth-child(2)::after { border-color: rgba(35, 135, 110, .12); border-radius: 45% 55% 62% 38%; }
#pain .card:nth-child(3) { background: #f5f8fe; }
#pain .card .icon {
  width: 48px;
  height: 48px;
  border-radius: 17px 17px 17px 6px;
  background: var(--qm-blue);
  box-shadow: none;
}
#pain .card:nth-child(2) .icon { background: var(--qm-mint-deep); }
#pain .card:nth-child(3) .icon { background: var(--qm-coral); }
#pain .card h3 { position: relative; z-index: 1; margin-top: 26px; color: var(--qm-ink); }
#pain .card p { position: relative; z-index: 1; }

#features .grid-3 { gap: 18px; }
#features .card {
  padding: 22px 14px 22px 62px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#features .card .icon {
  position: absolute;
  margin-left: -62px;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 9px;
  background: var(--qm-mint-deep);
  box-shadow: 0 0 0 8px rgba(185, 228, 212, .48);
}
#features .card:nth-child(2) .icon { background: var(--qm-blue); }
#features .card:nth-child(3) .icon { background: var(--qm-coral); }
#features .card h3 { margin-top: 0; color: var(--qm-ink); }

#formula { position: relative; overflow: hidden; }
#formula::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  top: -250px;
  right: -100px;
  border: 34px solid rgba(31, 87, 195, .06);
  border-radius: 46% 54% 42% 58%;
  pointer-events: none;
}
.formula-grid { gap: 18px; position: relative; z-index: 1; }
.formula-box {
  min-height: 215px;
  padding: 28px;
  border: 1px solid #cfe4da;
  border-radius: 22px 22px 8px 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}
.formula-box:nth-child(even) { transform: translateY(20px); border-color: #d3e0f1; }
.formula-box strong { color: var(--qm-ink); }
.formula-box code { border-color: #cfe4da; border-radius: 14px; background: #f0faf5; color: var(--qm-mint-deep); }

#operations .scenario-grid { gap: 0; border: 1px solid var(--qm-line); border-radius: 30px; overflow: hidden; background: #fff; }
#operations .card {
  min-height: 250px;
  padding: 34px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#operations .card:first-child { border-right: 1px dashed #bed7ce; background: linear-gradient(135deg, #effaf4, #fff); }
#operations .card .icon { border-radius: 16px; background: var(--qm-mint-deep); box-shadow: none; }
#operations .card:last-child .icon { background: var(--qm-blue); }

#workflow { background: #fffdf8; overflow: hidden; }
#workflow .flow { position: relative; gap: 0; }
#workflow .flow::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 3%;
  right: 3%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--qm-mint-deep) 0 8px, transparent 8px 16px);
  opacity: .46;
}
#workflow .flow-step {
  position: relative;
  padding: 48px 17px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#workflow .flow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 17px;
  width: 32px;
  height: 32px;
  border: 7px solid #fffdf8;
  border-radius: 50%;
  background: var(--qm-blue);
  box-shadow: 0 0 0 2px var(--qm-blue);
}
#workflow .flow-step:nth-child(2n)::before { background: var(--qm-mint-deep); box-shadow: 0 0 0 2px var(--qm-mint-deep); }
#workflow .flow-step strong { color: var(--qm-blue); font-size: 18px; }
#workflow .flow-step span { color: var(--qm-ink); }

#stores { background: #f4f9f7; }
#stores .store-grid { gap: 22px; }
.store-card {
  border: 1px solid var(--qm-line);
  border-radius: 25px 12px 25px 25px;
  box-shadow: 0 14px 32px rgba(23, 50, 77, .07);
}
.store-card__visual { position: relative; background: var(--qm-ink); }
.store-card__visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 68px;
  height: 22px;
  border: 2px solid var(--qm-mint);
  border-top: 0;
  border-radius: 0 0 38px 38px;
  transform: translateX(-50%);
}
.store-card__body { padding: 25px; }
.status { background: var(--qm-mint-soft); color: var(--qm-mint-deep); }
.skeleton { border-radius: 25px; background: linear-gradient(90deg, #e5f0ec 25%, #f8fcfa 45%, #e5f0ec 65%); }

.cta { position: relative; overflow: hidden; padding: 76px 0; background: var(--qm-ink); }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta::before { width: 390px; height: 390px; right: -120px; top: -240px; border: 46px solid rgba(185, 228, 212, .13); }
.cta::after { width: 18px; height: 18px; right: 22%; bottom: 42px; background: var(--qm-coral); box-shadow: -38px -21px 0 var(--qm-mint), -78px -4px 0 var(--qm-blue); }
.cta .shell { position: relative; z-index: 1; }
.cta .eyebrow { border-color: rgba(185, 228, 212, .4); color: var(--qm-mint); background: rgba(185, 228, 212, .08) !important; }
.cta .btn-primary { background: var(--qm-mint-deep); }
.cta .btn-primary:hover { background: #186c58; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qm-line);
  border-radius: 13px;
  color: var(--qm-ink);
  background: #fff;
  cursor: pointer;
}
.menu-toggle svg { width: 21px; height: 21px; }

@media (max-width: 980px) {
  .hero { min-height: 0; padding: 64px 0 52px; }
  .hero::before { background-position: 70% center; opacity: .48; }
  .hero::after { background: linear-gradient(90deg, var(--qm-canvas) 0%, rgba(255,253,248,.88) 76%, rgba(255,253,248,.28) 100%); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-grid > :first-child { max-width: 660px; }
  .queue-hero-art { display: block; margin: 10px -4px 0 12%; position: relative; z-index: 1; }
  .queue-hero-art img { border-radius: 34px 12px 34px 34px; box-shadow: var(--qm-shadow); }
  .hero-grid > :first-child::before, .hero-grid > :first-child::after { display: none; }
  #pain .card:nth-child(2), .formula-box:nth-child(even) { transform: none; }
}

@media (max-width: 820px) {
  .shell { padding-left: 20px; padding-right: 20px; }
  .topbar .shell { min-height: 68px; padding-top: 12px; padding-bottom: 12px; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .brand span > span { max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; width: 100%; padding: 10px; border: 1px solid var(--qm-line); border-radius: 16px; background: #fff; box-shadow: var(--qm-shadow); }
  .topbar.is-menu-open .nav { display: grid; grid-template-columns: 1fr; }
  .nav a, .nav .btn { width: 100%; justify-content: flex-start; }
  .hero { padding-top: 46px; }
  .hero::before, .hero::after { display: none; }
  h1 { font-size: 41px; }
  .hero p { font-size: 16px; }
  .hero-stats { margin-top: 32px; }
  .stat { padding: 2px 10px 0; }
  .hero-actions .btn, .store-actions .btn { width: 100%; }
  .queue-hero-art { margin: 30px 0 0; }
  .band { padding: 72px 0; }
  .section-head { margin-bottom: 28px; }
  #pain .grid-3, #features .grid-3, .formula-grid, #operations .scenario-grid, #stores .store-grid { grid-template-columns: 1fr; }
  #pain .card { min-height: auto; }
  #operations .card:first-child { border-right: 0; border-bottom: 1px dashed #bed7ce; }
  #workflow .flow { grid-template-columns: 1fr; gap: 4px; }
  #workflow .flow::before { top: 14px; bottom: 14px; left: 16px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--qm-mint-deep) 0 8px, transparent 8px 16px); }
  #workflow .flow-step { padding: 6px 4px 22px 58px; }
  #workflow .flow-step::before { top: 0; left: 0; }
  .cta .shell { display: block; }
  .cta .hero-actions { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
