*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
  --job: #7FEB00;
  --job-hover: #6ad400;
  --job-soft: #e6f8c4;
  --ink: #032B3A;
  --ink-2: #3D5A66;
  --paper: #E8EEF1;
  --surface: #FFFFFF;
  --line: #D4DCE0;
  --line-strong: #B7C3C9;
  --ok: #1F7A4D;
  --ok-bg: #E6F6EC;
  --err: #B42318;
  --err-bg: #FEE4E2;
  --nav-h: 56px;
  --wrap: 430px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(3, 43, 58, 0.05), 0 10px 24px rgba(3, 43, 58, 0.07);
  --shadow-lg: 0 12px 36px rgba(3, 43, 58, 0.12);
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --tab-h: 72px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 10px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  :root { --wrap: 1080px; --nav-h: 64px; }
}

body.sheet-locked { overflow: hidden; }

img, svg { max-width: 100%; height: auto; vertical-align: middle; }
img { display: block; }

a {
  color: #1F6B2A;
  text-underline-offset: 0.16em;
}
a:hover { color: var(--ink); }

h1, h2, h3 {
  color: var(--ink);
  margin: 0 0 0.4em;
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { font-size: clamp(1.55rem, 5.4vw, 2.15rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 0.75em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 0.98rem; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }
.fine { font-size: 0.8rem; color: var(--ink-2); line-height: 1.4; }

.wrap {
  width: min(var(--wrap), calc(100% - 28px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.chip,
.price-chip,
.spec-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--job-soft);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.price-chip {
  background: var(--ink);
  color: #fff;
}

.spec-chip {
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 650;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.7rem 0;
}

.btn,
a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  cursor: pointer;
  background: var(--job);
  color: var(--ink);
}
.btn:hover,
a.btn:hover { background: var(--job-hover); color: var(--ink); text-decoration: none !important; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-block { width: 100%; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: #EEF2F4; color: var(--ink); }

.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: #021f2b; color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.9rem;
}

/* ---------- App chrome ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(3, 43, 58, 0.08);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.15;
}
.brand-text br { display: block; content: ""; }
.brand-text small {
  display: block;
  width: 100%;
  margin-top: 0;
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: 0;
  line-height: 1.2;
}

.brand-mark,
.brand-mark::before,
.brand-mark::after {
  background: none !important;
}
.brand-mark::before,
.brand-mark::after {
  content: none !important;
  display: none !important;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  overflow: visible;
  background: transparent !important;
  box-shadow: none;
}
.brand-mark img {
  width: 40px;
  height: 40px;
  max-width: none;
  object-fit: contain;
  display: block;
  background: transparent;
  border-radius: 10px;
}

.nav-links {
  display: none;
  gap: 10px;
  margin-left: 8px;
  flex-wrap: wrap;
}
.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.section-head a,
.section-head a:link,
.section-head a:visited {
  color: var(--ink-2);
  text-decoration: none !important;
  font-weight: 650;
  font-size: 0.86rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.section-head a:hover { color: var(--ink); text-decoration: none !important; }

.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-contact,
.nav-cta { display: none; }

.nav-contact {
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta,
.nav-cta:link,
.nav-cta:visited,
.nav-cta:hover,
.nav-cta:active {
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--job);
  color: var(--ink);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.84rem;
  align-items: center;
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-contact { display: inline; }
  .nav-cta { display: inline-flex; }
}

/* ---------- Dashboard ---------- */

.dash {
  padding: 14px 0 8px;
}

.dash-hero {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}
.dash-hero h1 { color: #fff; margin: 0.25em 0 0.4em; }
.dash-hero .lede { color: #C5D4DA; }
.dash-hero .chip { background: var(--job); color: var(--ink); }
.dash-hero .btn-ghost,
.dash-hero a.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.dash-hero .btn-ghost:hover,
.dash-hero a.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.section {
  padding: 18px 0 6px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.82rem; font-weight: 750; text-decoration: none; }

.page-hero { padding: 12px 0 4px; }

.crumbs {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.crumbs a { color: var(--ink-2); text-decoration: none; }

.notice,
.rate-note {
  margin: 0.7rem 0 0;
  padding: 10px 12px;
  background: var(--job-soft);
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--ink);
}

/* ---------- Machine tiles ---------- */

.fleet-list {
  display: grid;
  gap: 12px;
}

.machine-tile {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
}

.machine-tile a.tile-link {
  color: inherit;
  text-decoration: none;
}

.tile-photo {
  background: #f4f6f7;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.tile-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile-body { padding: 12px 14px 14px; }
.tile-body h3 { margin: 0 0 0.15em; font-size: 1.05rem; }
.tile-body p { margin: 0; color: var(--ink-2); font-size: 0.86rem; }
.tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.tile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

@media (min-width: 860px) {
  .fleet-list { grid-template-columns: 1fr 1fr 1fr; }
  .tile-photo { aspect-ratio: 1 / 1; }
}

/* ---------- Machine detail ---------- */

.machine-hero {
  margin: 8px 0 14px;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.machine-hero .tile-photo {
  aspect-ratio: 1 / 1;
  max-height: 360px;
}
.machine-copy { padding: 14px 16px 16px; }

.pair-grid,
.pack-grid,
.cards {
  display: grid;
  gap: 10px;
}

.card,
.book-cta {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

a.card { color: inherit; text-decoration: none; }
a.card:hover { box-shadow: var(--shadow-lg); }

.card h3 { margin: 0 0 0.25em; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.88rem; }

.cat-grid {
  display: grid;
  gap: 10px;
}
.cat-card {
  padding: 0 14px 14px;
  overflow: hidden;
}
.cat-photo {
  margin: 0 -14px 12px;
  background: #f4f6f7;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.cat-photo picture,
.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cat-card .chip { margin-bottom: 8px; }
.cat-card h2 { font-size: 1.15rem; margin: 0 0 0.35em; }
.cat-card .price-chip { display: inline-flex; margin-top: 10px; }
.cat-card .browse {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--ink);
}

.rate-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rate-strip a {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
}
.rate-strip strong { display: block; margin-top: 4px; font-size: 1rem; }
@media (min-width: 720px) {
  .rate-strip { grid-template-columns: repeat(3, 1fr); }
}

.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.9rem;
}
.rates caption {
  text-align: left;
  font-weight: 750;
  margin-bottom: 8px;
}
.rates th,
.rates td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.rates th { font-weight: 650; width: 58%; }

.steps-3 { }
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.kit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}
.kit-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}
.kit-tab.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tile-photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #eef3f5;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mini-machine {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
}
.mini-machine img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f4f6f7;
  border-radius: 10px;
}
.mini-machine strong { display: block; font-size: 0.92rem; }
.mini-machine span { color: var(--ink-2); font-size: 0.78rem; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #3A7A12;
  margin-bottom: 0.15rem;
}
.steps h3 { margin: 0 0 0.2em; }

.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 750;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-top: -4px;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item .faq-body { padding: 0 14px 12px; color: var(--ink-2); font-size: 0.9rem; }

.prose { max-width: 42em; }
.prose h2 { margin-top: 1.2rem; }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: 0.4rem; }

.area-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.area-list li {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 0.9rem;
}
@media (min-width: 720px) {
  .area-list { grid-template-columns: 1fr 1fr; }
  .pack-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Forms / wizard ---------- */

.form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 5px; }
.field-span { grid-column: 1 / -1; }

label {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  appearance: none;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid hsl(86, 100%, 78%);
  border-color: #5AA600;
}
input.is-invalid,
select.is-invalid { border-color: var(--err); outline-color: #FECACA; }

.qerr { display: none; margin: 0; color: var(--err); font-size: 0.78rem; font-weight: 650; }
.qerr.is-on { display: block; }

.form-status { margin-top: 12px; }
.form-status.is-success { background: var(--ok-bg); color: var(--ok); padding: 12px; border-radius: 10px; }
.form-status.is-error { background: var(--err-bg); color: var(--err); padding: 12px; border-radius: 10px; }

/* ---------- Footer / tabbar ---------- */

.site-footer {
  margin-top: 28px;
  background: var(--ink);
  color: #A9BBC2;
  padding: 28px 0 20px;
}
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .wrap { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr; }
}
.foot-nav { display: grid; gap: 8px; }
.foot-nav a { text-decoration: none; font-weight: 650; }
.foot-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
  font-size: 0.78rem;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(3, 43, 58, 0.1);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
}
.tabbar .btn { min-height: 48px; font-size: 0.92rem; }
@media (max-width: 400px) {
  .tabbar .btn { font-size: 0.84rem; padding-inline: 10px; }
}
@media (min-width: 860px) {
  .tabbar { display: none; }
}

.empty-page { padding: 3.4rem 0; max-width: 28em; }

/* ---------- Booking wizard ---------- */

body.book-page,
body.contact-page { background: #E4EAED; padding-bottom: 0; }
body.book-page .tabbar,
body.contact-page .tabbar { display: none; }

.qwrap { padding-bottom: 7.2rem; }
.qhead { margin: 12px 0 10px; }
.qhead .chip { margin-bottom: 0.55rem; }
.qhead-sub { color: var(--ink-2); margin: 0; font-size: 0.9rem; }

.qprogress { margin-bottom: 12px; }
.qprogress-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.qprogress-track span {
  height: 5px;
  border-radius: 99px;
  background: #D0D8DC;
}
.qprogress-track span.is-done,
.qprogress-track span.is-active { background: var(--job); }
.qprogress-label {
  margin: 7px 0 0;
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--ink-2);
}

.qcard {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.qhint { color: var(--ink-2); font-size: 0.88rem; }

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 420px) {
  .date-grid { grid-template-columns: 1fr; }
}
.hire-math {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.cart-heading { margin: 1.2rem 0 0; }
.cart-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.cart-row.is-flash {
  outline: 2px solid var(--job);
  background: #f3fcd4;
}
.cart-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-tools .stepper button {
  width: 32px;
  height: 32px;
}
.btn.is-added {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.terms-accept {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #F7FAF4;
  font-size: 0.88rem;
  cursor: pointer;
}
.terms-accept input { margin-top: 3px; accent-color: #5AA600; }
.hire-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(8px);
  z-index: 90;
  max-width: min(420px, calc(100% - 24px));
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hire-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.book-boot-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--err-bg);
  color: var(--err);
  font-weight: 750;
  font-size: 0.9rem;
}
.book-boot-error a { color: var(--err); }

.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.kit-catalog,
.cart-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  min-height: 72px;
}
.kit-catalog {
  display: grid !important;
  visibility: visible !important;
}

.kit-row,
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 80px;
  padding: 8px;
  border-radius: 14px;
  background: #F4F7F8;
}
.kit-row img,
.cart-row img,
.sheet-photo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}
.kit-row.pack,
.cart-row.pack { grid-template-columns: 1fr auto; }
.kit-row.pack:has(img),
.cart-row.pack:has(img) { grid-template-columns: 64px 1fr auto; }
@media (max-width: 520px) {
  .cart-row,
  .cart-row.pack {
    grid-template-columns: 56px 1fr;
  }
  .cart-row.pack { grid-template-columns: 1fr; }
  .cart-row .cart-tools {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
.kit-row strong,
.cart-row strong { display: block; font-size: 0.9rem; }
.kit-row span,
.cart-row span { color: var(--ink-2); font-size: 0.78rem; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stepper button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.stepper button:hover { background: var(--job-soft); }
.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.stepper output {
  min-width: 2ch;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.kit-stepper {
  justify-self: end;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 8px;
}
.icon-btn:hover { background: #EEF2F4; color: var(--err); }

.delivery-fieldset {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.delivery-fieldset legend {
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.delivery-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}
.delivery-card:has(input:checked) {
  border-color: #5AA600;
  background: var(--job-soft);
}
.delivery-card input { margin-top: 4px; accent-color: #5AA600; }
.delivery-card > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.win-group { display: grid; gap: 8px; }
.win-option { display: block; }
.win-option input { position: absolute; opacity: 0; pointer-events: none; }
.win-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.win-option input:checked + .win-card {
  border-color: #5AA600;
  background: var(--job-soft);
  box-shadow: inset 0 0 0 1px #5AA600;
}
.win-body { display: grid; gap: 2px; }
.win-body span { color: var(--ink-2); font-size: 0.8rem; }
.win-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
}
.win-option input:checked + .win-card .win-dot {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 4px var(--job);
}

.price-hero { text-align: center; padding: 4px 0 12px; }
.price-amount {
  font-size: clamp(2.1rem, 9vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.price-gst { color: var(--ink-2); font-weight: 700; font-size: 0.86rem; }
.quote-lines {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.quote-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.qsuccess { text-align: center; padding: 28px 12px; }
.tick-big {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--job);
  display: grid;
  place-items: center;
}
.tick-big svg { width: 26px; height: 22px; color: var(--ink); }

.qactions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
}
.qactions-inner {
  width: min(430px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.qactions .btn { flex: 1; }
.qactions .qback { flex: 0 0 auto; min-width: 92px; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 43, 58, 0.42);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  transition: opacity 0.2s ease;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 88vh;
  overflow: auto;
  visibility: hidden;
  pointer-events: none;
}
.sheet.is-open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: #D0D7DB;
  border-radius: 99px;
  margin: 4px auto 12px;
}
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet, .sheet-backdrop { transition: none; }
}
