/* ==========================================================
   MID CITIES VENDING — STYLES
   Mobile-first. Breakpoints widen up from a 380px baseline.
   ========================================================== */

:root {
  /* Color */
  --ink: #12181C;
  --ink-soft: #232C31;
  --paper: #F5F6F2;
  --paper-dim: #ECEEE8;
  --white: #FFFFFF;
  --vend: #C7472A;
  --vend-dark: #A9371E;
  --teal: #0E6F6E;
  --steel: #6B7280;
  --steel-200: #D8DCE1;
  --line: #DFE3DF;
  --led: #3DDC84;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --wrap: 480px;
  --radius: 14px;
  --header-h: 96px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--vend); color: var(--white);
  padding: 0.75rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.eyebrow-on-dark { color: var(--led); }

.section-headline {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
}
.section-headline.on-dark { color: var(--white); }

.section-body {
  color: var(--steel);
  font-size: 0.98rem;
  max-width: 42ch;
}
.section-body.on-dark { color: #C9D1D6; max-width: 46ch; }

.section { padding: 3.5rem 0; }
.section-alt { background: var(--paper-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-vend {
  background: var(--vend);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 75, 43, 0.28);
}
.btn-vend:hover { background: var(--vend-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--steel-200);
}
.btn-ghost:hover { border-color: var(--ink); }
.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.hero .btn-ghost:hover { border-color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--ink);
  color: #D6DADC;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 1.25rem;
}
.status-pill { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.topbar-contact { display: none; gap: 1rem; }
.topbar-contact a:hover { color: var(--white); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-mark { color: var(--vend); display: flex; }
.brand-mark img { display: block; width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 3rem;
}
.primary-nav[data-open="true"] { transform: translateX(0); }
.nav-enhanced .primary-nav[data-open="false"] { transform: translateX(100%); }
html:not(.nav-enhanced) .primary-nav {
  position: static;
  transform: none;
  padding: 0 1.25rem 1rem;
  overflow: visible;
}
html:not(.nav-enhanced) .primary-nav ul { gap: 0.25rem; }
html:not(.nav-enhanced) .nav-toggle { display: none; }
.primary-nav ul { display: flex; flex-direction: column; }
.primary-nav li a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-cta { margin-top: 1.5rem; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,75,43,0.35), transparent 70%);
  filter: blur(10px);
}
.hero-inner { position: relative; }
.hero .eyebrow { color: var(--led); }
.hero-headline {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.hero-body {
  color: #B9C2C6;
  font-size: 1.02rem;
  max-width: 40ch;
  margin-bottom: 1.75rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.step-code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--vend);
  border: 1.5px solid var(--vend);
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.step p { color: var(--steel); font-size: 0.92rem; }

/* ---------- Upgrade ---------- */
.upgrade-grid { display: grid; gap: 2rem; }
.upgrade-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.upgrade-visual img { width: 100%; height: 100%; object-fit: cover; }
.upgrade-visual svg { width: 60%; height: 60%; }

/* ---------- Chips / locations ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.area-cities { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.area-cities-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.75rem;
}
.city-list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.city-list a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--vend);
  padding-bottom: 1px;
}
.city-list a:hover { color: var(--vend); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.feature-image {
  border-radius: 12px;
  margin-bottom: 0.85rem;
  display: block;
}
.feature-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(14,124,123,0.08);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.75rem;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--steel); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ink); color: var(--white); text-align: left; }
.testimonials .eyebrow { color: var(--led); }
.testimonials .section-headline { color: var(--white); }
.testimonials .section-body { color: #B9C2C6; margin-bottom: 1.5rem; }
.google-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.google-row img { flex-shrink: 0; }
.google-row p { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.96rem;
}
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--steel-200);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-icon::before { width: 9px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 9px; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer[hidden] { display: none; }
html:not(.faq-enhanced) .faq-answer { max-height: none; overflow: visible; }
.faq-answer p {
  padding: 0 1.25rem 1.1rem;
  color: var(--steel);
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); padding: 3.5rem 0; }
.cta-band-inner .btn { margin-top: 0.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1rem; margin-top: 1.75rem; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.contact-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vend);
  margin-bottom: 0.6rem;
}
.contact-code svg { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--steel); font-size: 0.9rem; margin-bottom: 0.8rem; }
.contact-link { font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--vend); white-space: nowrap; }

.social-row { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
}
.social-row svg { width: 18px; height: 18px; }
.social-row a:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #8A9499; padding: 1.75rem 0; }
.footer-inner {
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }

/* ==========================================================
   BREAKPOINTS
   ========================================================== */
@media (min-width: 560px) {
  .topbar-contact { display: flex; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  :root { --wrap: 1080px; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    transform: none;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: transparent;
    overflow: visible;
  }
  .primary-nav ul { flex-direction: row; gap: 1.75rem; }
  .primary-nav li a { border-bottom: none; padding: 0; font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; }
  .nav-cta { margin-top: 0; width: auto; }

  .hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .hero-headline { font-size: 3.4rem; }
  .hero-body { max-width: 42ch; }
  .hero-visual { margin-top: 0; aspect-ratio: 16 / 9; }

  .upgrade-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .section-headline { font-size: 2.1rem; }
}
