/* Kits page (ditch-assist.html). Shares the homepage explainers (kit-explainer, job-picker) and
   home.css section styles; this file holds what only this page uses. */

.kits-head { max-width: 820px; margin-bottom: clamp(26px, 3.4vw, 42px); }
.kits-head h2 { margin-top: 12px; }
.kits-head .lead { margin-top: 16px; }
.kits-foot { margin-top: 22px; font-size: 15px; color: var(--ink-2); }

/* hero: facts as a quiet row, pause button bottom right */
.kits-facts { list-style: none; padding: 0; }
.kits-facts li { display: inline-block; border: 1px solid rgba(243, 236, 224, .32); border-radius: 999px; padding: 8px 13px; color: #d8cfbc; background: rgba(26, 22, 18, .42); font-size: 13.5px; }
.kits-facts b { color: #fff; font-weight: 800; }
.kits-hero__motion { position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); z-index: 3; }

/* ---------- at a glance ---------- */
.kits-glance { padding: clamp(64px, 8vw, 104px) 0; background: #fff; }
.glance__pick { display: none; }
.glance__table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.glance__table th, .glance__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.glance__table thead th { vertical-align: top; border-bottom: 2px solid var(--ink); padding-top: 0; }
.glance__table thead img { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 12px; padding: 10px; border-radius: 14px; background: #f6f2ea; }
.glance__corner { width: 22%; border-bottom: 2px solid var(--ink) !important; }
.glance__name { display: block; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.glance__badge { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; }
.glance__sub { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.glance__table tbody th { color: var(--ink); font-weight: 700; font-size: 14.5px; }
.glance__table tbody td b { color: var(--ink); }
.glance__table [data-col="auto"] { background: #faf8f3; }
.glance__yes { font-weight: 800; color: var(--ink); }
.glance__no { color: var(--ink-3); }
.glance__foot { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }

@media (max-width: 760px) {
  /* phones: pick a setup, see its column next to the row labels */
  .glance__pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 12px; background: #f1ece2; }
  .glance__pick button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 700 14px/1.15 var(--font-body, inherit); cursor: pointer; }
  .glance__pick button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(26, 22, 18, .12); }
  .glance__pick button:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
  .glance__table [data-col] { display: none; }
  .glance[data-show="auto"] [data-col="auto"], .glance[data-show="guide"] [data-col="guide"], .glance[data-show="lite"] [data-col="lite"] { display: table-cell; }
  .glance__corner { width: 42%; }
  .glance__table [data-col="auto"] { background: none; }
  .glance__table th, .glance__table td { padding: 12px 8px; font-size: 14.5px; }
  .glance__table thead img { max-width: 110px; }
}

/* ---------- machine chooser ---------- */
.kits-machines { padding: clamp(64px, 8vw, 104px) 0; background: #f3ecdf; }
.machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.machine {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.machine__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: contain; margin-bottom: 6px; }
.machine__img--photo { object-fit: cover; border-radius: 10px; }
.machine__art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; margin-bottom: 6px; padding: 8px 20%; }
.machine h3 { font-size: 19px; line-height: 1.2; }
.machine__answer { margin: 2px 0 0; font-weight: 800; color: var(--ink); font-size: 16px; }
.machine__answer::before { content: "→ "; color: var(--brand-green); }
.machine__answer--dig::before { color: var(--brand-yellow); }
.machine__note { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.machine__modes { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.machine__modes a { color: var(--ink); font-weight: 700; }
.machine__more { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.machine__more summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink); list-style: none; }
.machine__more summary::-webkit-details-marker { display: none; }
.machine__more summary::after { content: " +"; color: var(--ink-3); }
.machine__more[open] summary::after { content: " −"; }
.machine__more p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.machine--link { transition: border-color .2s ease; }
.machine--link:hover { border-color: var(--ink); }
.machine--link:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; }
.machine--link { border-left: 4px solid var(--brand-yellow); }
.machine__go { margin: auto 0 0; padding-top: 10px; font-weight: 800; font-size: 14.5px; }
@media (max-width: 980px) { .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .machines { grid-template-columns: 1fr; } }

/* ---------- in the box (dark) ---------- */
.kits-box { padding: clamp(64px, 8vw, 104px) 0; background: #1a1612; color: #f3ece0; }
.kits-box h2, .kits-box h3, .kits-box h4 { color: #fff; }
.kits-box .lead { color: #d8cfbc; }
.box-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; padding: 18px; border-radius: 16px; background: #221d18; border: 1px solid #3a3025; scroll-margin-top: calc(var(--nav-h, 68px) + 16px); }
.box__img { position: relative; margin: 0; border-radius: 12px; background: #fff; padding: 12px; align-self: start; }
.box__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.box__badge { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; background: #f3ece0; color: #1a1612; font-size: 11.5px; font-weight: 800; }
/* on the kit photo, so both kit titles start on the same line; ink pill on the white tile */
.box__img .box__badge { position: absolute; top: 10px; left: 10px; margin: 0; background: var(--ink); color: #fff; }
.box h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.box__list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.box__list li { position: relative; padding-left: 24px; color: #d8cfbc; font-size: 15px; line-height: 1.4; }
.box__list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid #f3ece0; border-bottom: 2px solid #f3ece0; transform: rotate(-45deg); }
.box__list li.is-add { color: #fff; font-weight: 600; }
.box__list li.is-add::before { border-color: var(--brand-orange); }
.box__note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #c9bda7; }
.box-add { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 22px; align-items: baseline; margin-top: 16px; padding: 16px 20px; border-radius: 14px; border: 1px dashed rgba(243, 236, 224, .3); }
.box-add h3 { font-size: 16px; }
.box-add ul { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; color: #d8cfbc; font-size: 14.5px; }
.box-add b { color: #fff; }
.valves { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 22px; margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid rgba(243, 236, 224, .12); }
.valves__head h3 { font-size: 20px; }
.valves__head p { margin-top: 10px; color: #d8cfbc; font-size: 15px; line-height: 1.5; }
.valves__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.valve { padding: 14px; border-radius: 14px; background: #221d18; border: 1px solid #3a3025; }
.valve img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; background: #fff; padding: 8px; margin-bottom: 12px; }
.valve h4 { font-size: 17px; }
.valve p { margin-top: 6px; color: #d8cfbc; font-size: 14px; line-height: 1.45; }
.valve__bypass { padding-top: 10px; border-top: 1px solid #3a3025; color: #c9bda7 !important; }
/* the configurable valve has no product photo: a full-width text row under the two photo cards */
.valve--text { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.valve--text p { margin-top: 0; }
/* the excavator card on this page is our drawing, like the machine grid, not the site photo */
.kitx-card__art { display: grid; place-items: center; overflow: hidden; background: #f6f1e8; }
/* beside the text the panel is narrow and tall: draw the machine larger and let the ground run off both sides */
@media (min-width: 561px) { .kitx-card__art .machine-art { width: 112%; max-width: none; } }
@media (max-width: 560px) { .kitx-card__art { padding: 10px 16px; } }
.valves__note { grid-column: 2; margin: 0; padding-top: 12px; border-top: 1px solid #3a3025; color: #c9bda7; font-size: 14px; line-height: 1.5; }
@media (max-width: 1000px) {
  .box-grid { grid-template-columns: 1fr; }
  .valves { grid-template-columns: 1fr; }
  .valves__note { grid-column: auto; }
}
@media (max-width: 600px) {
  .box { grid-template-columns: 1fr; }
  .box__img { max-width: 240px; width: 100%; justify-self: center; }
  .box-add { grid-template-columns: 1fr; }
  .valves__grid { grid-template-columns: 1fr; }
}

/* ---------- videos ---------- */
.da-hardware-videos { background: #fff; }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vid__frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111; }
.vid__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vid__kicker { display: inline-block; margin-top: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.vid h3 { margin-top: 8px; font-size: 18px; line-height: 1.25; }
@media (max-width: 900px) { .vids { grid-template-columns: 1fr; } }

/* ---------- install and move ---------- */
.kits-install { padding: clamp(64px, 8vw, 104px) 0; background: #f3ecdf; }
.kits-install__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.kits-install h2 { margin-top: 12px; }
.kits-install__facts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.kits-install__facts li { padding-left: 16px; border-left: 3px solid var(--ink); color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.kits-install__facts b { color: var(--ink); }
.kits-install__quote { padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.kits-install__quote::before { color: var(--brand-green); }
.kits-install__quote blockquote p { color: var(--ink-2); font-size: 15px; }
.kits-install__quote blockquote p + p { margin-top: 10px; }
.kits-install__quote figcaption { color: var(--ink-3); }
.kits-install__quote figcaption strong { color: var(--ink); }
@media (max-width: 900px) { .kits-install__grid { grid-template-columns: 1fr; } }

/* ---------- voices ---------- */
.kits-voices { padding: clamp(56px, 7vw, 88px) 0; background: #fff; }
.kits-voices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.kits-voices .pq::before { color: var(--brand-green); }
.kits-voices .pq blockquote p { color: var(--ink-2); }
.kits-voices .pq figcaption { color: var(--ink-3); }
.kits-voices .pq figcaption strong { color: var(--ink); }
@media (max-width: 900px) { .kits-voices__grid { grid-template-columns: 1fr; } }

