:root {
  --green: #0c6a3c;
  --green-deep: #084e2c;
  --green-soft: #e7f3ec;
  --ink: #141816;
  --muted: #3e4943;
  --line: #e4e1da;
  --bg: #f6f5f2;
  --card: #ffffff;
  --radius: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar: calc(64px + var(--safe-b));
  --font: Inter, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(20, 24, 22, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section, [id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { color: var(--green); }
.nav-desktop {
  display: flex;
  gap: 4px;
  margin-right: auto;
  margin-left: 28px;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav-desktop a:hover { background: #fff; color: var(--ink); }
.nav-desktop a.active { color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
}
.pill-green { background: var(--green); color: #fff; }
.pill-green:hover { background: var(--green-deep); }
.pill-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.pill-ghost:hover { border-color: #cfcabd; }

.hero { padding: 56px 0 8px; }
.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 16ch;
}
.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.status-line {
  display: flex;
  gap: 16px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-line span + span::before {
  content: "·";
  margin-right: 16px;
  color: #b7b2a8;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  padding: 18px 20px 4px 0;
}
.facts div + div { padding-left: 20px; }
.facts dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section { padding: 56px 0; }
.section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.eyebrow {
  margin: 0;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.muted { color: var(--muted); line-height: 1.55; margin: 0; }

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 280px 300px;
  gap: 20px;
  align-items: start;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.chip:hover { border-color: #cfcabd; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.finder { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 16px; }
.field-label {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 12px 0 6px;
}
.finder .field-label { width: auto; margin: 0; }
.select, .field {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
}
.finder .select { width: min(280px, 100%); }
.sheet-card .pill { width: 100%; margin-top: 16px; }

.kiosk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.kiosk-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.kiosk-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bin {
  background: var(--bg);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 88px;
}
.bin img { width: 100%; height: 88px; object-fit: contain; }

.part-grid { display: grid; gap: 8px; }
.part-tile {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  min-height: 72px;
  cursor: pointer;
  color: inherit;
}
.part-tile img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 8px;
}
.part-tile b { font-weight: 600; font-size: 14px; }
.part-tile small { display: block; color: var(--green); font-weight: 600; margin-top: 2px; }
.part-tile.is-on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

.reserve {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.reserve h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.res-photo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 8px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.row b { color: var(--ink); font-weight: 600; text-align: right; }
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.reserve .pill { width: 100%; margin-top: 16px; }

.net-grid, .mech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.list-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}
.list-head {
  padding: 12px 12px 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 8px;
  min-height: 64px;
}
.item:hover { background: var(--bg); }
.thumb { display: none; }
.item b { font-weight: 600; }
.item small { color: var(--muted); }
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-deep);
  white-space: nowrap;
}
.badge.low { background: #f8efd8; color: #7a5410; }
.slot {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.slot:hover { border-color: var(--green); }
.slot.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.footer {
  padding: 40px 0 calc(28px + var(--tabbar));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.foot-grid h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-grid a, .foot-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  display: block;
  margin: 0 0 8px;
}
.foot-grid a:hover { color: var(--ink); }
.legal {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.tabbar { display: none; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.sheet.is-open { pointer-events: auto; }
.sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.4);
  opacity: 0;
  transition: opacity .2s ease;
}
.sheet.is-open .sheet-bg { opacity: 1; }
.sheet-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 20px calc(20px + var(--safe-b));
  transition: transform .25s ease;
}
.sheet.is-open .sheet-card { transform: translate(-50%, 0); }
.sheet-card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.handle {
  width: 36px;
  height: 4px;
  background: #ddd9d2;
  border-radius: 99px;
  margin: 4px auto 14px;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.day {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 52px;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
}
.day b { display: block; font-size: 15px; }
.day span { color: var(--muted); font-size: 11px; }
.day.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.is-on span { color: #d9d5ce; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar) + 16px);
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  font-size: 14px;
  font-weight: 500;
  max-width: min(440px, calc(100% - 32px));
  text-align: center;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .nav-desktop, .support-desk { display: none; }
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 34px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div + div { padding-left: 0; }
  .hub-grid, .net-grid, .mech-grid, .foot-grid { grid-template-columns: 1fr; }
  .kiosk { display: none; }
  .section { padding: 40px 0; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 50;
    padding: 6px 4px var(--safe-b);
  }
  .tab {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    display: grid;
    gap: 2px;
    justify-items: center;
    align-content: center;
    min-height: 52px;
    padding: 4px 0 8px;
  }
  .tab svg { width: 22px; height: 22px; }
  .tab.is-on { color: var(--green); }
  .cta-row .pill { flex: 1; }
}
