/* =========================================================
   Manatee Vending — site styles
   Brand: blue #1596F0 · slate #363E4A · Montserrat headers
   ========================================================= */

:root {
  --blue: #1596f0;
  --blue-600: #0b7fd4;
  --blue-50: #eaf5fe;
  --slate: #363e4a;
  --slate-900: #1f252e;
  --slate-700: #4a5361;
  --ink: #1f252e;
  --muted: #5f6977;
  --line: #e3e7ed;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --green: #1f9d6b;
  --green-50: #e8f7f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 37, 46, .06), 0 8px 24px rgba(31, 37, 46, .06);
  --shadow-lg: 0 24px 60px rgba(31, 37, 46, .22);
  --max: 1180px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--slate-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--slate-900); color: #d6dbe2; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: transparent; color: var(--slate-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); }
.btn--light { background: #fff; color: var(--slate-900); }
.btn--light:hover { background: var(--blue-50); }
.btn--block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; }
.logo__mark { width: 40px; height: 44px; flex: none; }
.logo__rule { width: 2px; height: 38px; background: var(--slate); border-radius: 1px; }
.logo__type { display: flex; flex-direction: column; font-family: var(--head); line-height: 1; }
.logo__top { color: var(--blue); font-weight: 500; font-size: 17px; letter-spacing: .26em; }
.logo__bot { color: var(--slate); font-weight: 500; font-size: 20.5px; letter-spacing: .06em; margin-top: 3px; }
.logo--light .logo__bot { color: #fff; }
.logo--light .logo__rule { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--head); font-weight: 500; font-size: .93rem; color: var(--slate-700);
  text-decoration: none; position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--slate-900); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--blue); border-radius: 2px;
}
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--slate-900);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(21, 150, 240, .12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: var(--slate-700); font-size: .95rem; }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

.hero__stage {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 36px 24px 0; display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  min-height: 420px;
}
.hero__stage img { height: 340px; width: auto; object-fit: contain; }
.hero__stage img.sm { height: 290px; }
.hero__badge {
  position: absolute; left: -18px; bottom: 36px; background: var(--slate-900); color: #fff;
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
.hero__badge strong { font-family: var(--head); display: block; font-size: 1rem; }
.hero__badge small { color: #b6bfcb; font-size: .8rem; }
.hero__badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 28px 24px; text-align: center; border-left: 1px solid var(--line); }
.strip__item:first-child { border-left: 0; }
.strip__item strong { display: block; font-family: var(--head); font-size: 1.6rem; color: var(--slate-900); font-weight: 700; }
.strip__item span { color: var(--muted); font-size: .9rem; }

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d5dbe3; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }
.icon--green { background: var(--green-50); color: var(--green); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--head); font-weight: 700; font-size: 2.4rem; color: var(--blue); display: block; margin-bottom: 14px; line-height: 1;
}
.step p { color: #b6bfcb; margin: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }
.checklist strong { color: var(--slate-900); }

.tap-flow { display: grid; gap: 14px; }
.tap-flow__row {
  display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.tap-flow__row .icon { margin: 0; flex: none; }
.tap-flow__row h3 { margin: 0 0 2px; font-size: 1.05rem; }
.tap-flow__row p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Locations ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-family: var(--head); font-weight: 500; font-size: .93rem; color: var(--slate);
}
.chip svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Machine cards ---------- */
.machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.machine {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.machine:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.machine__img { background: #fff; height: 300px; display: flex; align-items: flex-end; justify-content: center; padding: 28px 16px 0; border-bottom: 1px solid var(--line); position: relative; }
.machine__img img { max-height: 100%; width: auto; }
.machine__tag {
  position: absolute; top: 14px; left: 14px; font-family: var(--head); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--blue-50); color: var(--blue-600); padding: 5px 10px; border-radius: 999px;
}
.machine__tag--frozen { background: #e7f3ff; color: #1b64b8; }
.machine__tag--ad { background: #fff4e0; color: #a86400; }
.machine__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.machine__body h3 { font-size: 1.35rem; margin-bottom: 2px; }
.machine__type { color: var(--blue-600); font-family: var(--head); font-weight: 500; font-size: .88rem; margin-bottom: 14px; }
.machine__best { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.machine__fits { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.machine__fits > span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.machine__fits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.machine__fits li { font-size: .8rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); }
.machine__fits li.is-healthy { background: var(--green-50); color: #13704b; }

/* compact preview row on home page */
.lineup { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; align-items: end; }
.lineup a { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; padding: 20px 8px 16px; border-radius: var(--radius); transition: background .2s; }
.lineup a:hover { background: #fff; box-shadow: var(--shadow); }
.lineup img { height: 210px; width: auto; }
.lineup a.wide img { height: 210px; }
.lineup strong { font-family: var(--head); font-weight: 600; color: var(--slate-900); font-size: .92rem; text-align: center; }
.lineup span { color: var(--muted); font-size: .78rem; margin-top: -10px; text-align: center; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .95rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--head); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); font-weight: 600; }
.compare tbody th { font-family: var(--head); font-weight: 600; color: var(--slate-900); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td { font-variant-numeric: tabular-nums; color: var(--slate-700); }

/* ---------- Products ---------- */
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cat h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat h3 .icon { margin: 0; width: 42px; height: 42px; }
.cat ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat li { font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--slate-700); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  background: var(--green-50); color: #13704b; font-weight: 600; font-size: .9rem;
}
.tag svg { width: 16px; height: 16px; }

.mix { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 18px 0 12px; }
.mix span { display: block; height: 100%; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: var(--muted); }
.mix-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--slate-900) 0%, var(--slate) 100%);
  border-radius: 24px; padding: 56px; color: #d6dbe2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 150, 240, .35), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.cta-band__actions a.plain { color: #fff; font-family: var(--head); font-weight: 500; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: #aab3bf; padding: 64px 0 32px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d6dbe2; }
.site-footer p { max-width: 340px; margin-top: 18px; }
.footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- Lead modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 25, 32, .6); backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal__dialog {
  position: relative; width: 100%; max-width: 860px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; animation: rise .3s cubic-bezier(.2, .8, .2, 1);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.modal__close:hover { background: rgba(255, 255, 255, .22); }
.modal__close svg { width: 18px; height: 18px; }
.modal__col { padding: 44px 40px; }
.modal__col h2 { font-size: 1.55rem; margin-bottom: 10px; }
.modal__col > p { color: var(--muted); font-size: .97rem; }
.modal__col--dark { background: linear-gradient(160deg, var(--slate-900), var(--slate)); color: #c9d0d9; }
.modal__col--dark h2 { color: #fff; }
.modal__col--dark > p { color: #b6bfcb; }
.modal .eyebrow { margin-bottom: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--slate-700); }
.field input {
  font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 150, 240, .15); }
.field input[aria-invalid="true"] { border-color: #d9443b; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form-error { font-size: .85rem; color: #c0392b; margin: -6px 0 12px; min-height: 0; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success .icon { margin: 0 auto 16px; background: var(--green-50); color: var(--green); }
.lead-form.is-done form { display: none; }
.lead-form.is-done .form-success { display: block; }

.direct { display: grid; gap: 12px; margin-top: 24px; }
.direct a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; transition: background .2s;
}
.direct a:hover { background: rgba(255, 255, 255, .12); }
.direct .icon { margin: 0; width: 40px; height: 40px; background: rgba(21, 150, 240, .18); color: #6cc0ff; flex: none; }
.direct small { display: block; color: #aab3bf; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.direct strong { font-family: var(--head); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal__backdrop, .modal__dialog { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lineup { grid-template-columns: repeat(4, 1fr); row-gap: 8px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__badge { left: 12px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__col { padding: 36px 28px; }
  .modal__close { background: var(--bg-soft); color: var(--slate-900); }

  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; display: none; box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__links a { display: block; padding: 12px 0; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .btn { margin-top: 8px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .lineup { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
  .hero__stage { min-height: 320px; padding-top: 24px; }
  .hero__stage img { height: 240px; }
  .hero__stage img.sm { height: 200px; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo__top { font-size: 15px; }
  .logo__bot { font-size: 18px; }
}
