/* reweb marketing page: page CSS only, as the kit allows it (inside a visual, the app frame recipe, one --p-h per
   card group, the hero's check form). Everything else comes from the kit's system. */

/* the check form in the hero: the label above, the address and the main button on one line */
.check-form { margin-top: var(--s-6); }
.check-form .field { gap: var(--s-2); }
.check-form__row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.check-form__row input { flex: 1 1 220px; min-width: 0; }
.check-form__row .btn { flex: none; }
.hero--split .hero-facts { margin-top: var(--s-7); }
@media (max-width: 639px) {
  .check-form__row .btn { width: 100%; }
  .hero--split .hero-facts { display: none; }
}

/* the hero's check window: four columns (area, finding, status, score) */
.report .ui-win__age { font-variant-numeric: tabular-nums; }
.hero .hero__media.frame > .ly-float { position: absolute; top: auto; right: auto; bottom: var(--s-5); left: var(--s-5); z-index: 2; }
@media (max-width: 639px) { .hero .hero__media.frame > .ly-float { display: none; } }

/* the feature group: one panel height (cards.md) */
#check .panel { --p-h: 336px; }
@media (max-width: 639px) { #check .panel { --p-h: 200px; } }

/* the app frame (sections-library.md, app-frame): the list beside the open item in one window */
.app.ui { --fx-bg: #ffffff; --fx-surface: #f4f5f7; --fx-ink: #0b0c0e; --fx-muted: #5d6470; --fx-accent: #1f2de6; --fx-accent-ink: #ffffff; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; color: var(--u-ink, var(--p-ink)); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane--list::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.app__intro { color: var(--ink); font-size: var(--t-lead); line-height: 1.5; }
.app__intro .link { margin-top: var(--s-3); }

/* the list has no sidebar: its rows take the whole pane */
.app .ui-win__body { grid-template-columns: minmax(0, 1fr); }

/* the list rows: a transparent button over each row opens its page in the right pane */
.app .ui-win__row { position: relative; }
.app__pick { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.app__pick:focus-visible { outline: 2px solid var(--p-accent); outline-offset: -2px; }
.app .ui-win__row.is-sel { background: color-mix(in oklab, var(--u-ink) 5%, var(--u-bg)); }
.app .ui-win__row.is-sel::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--p-accent); }
@media (hover: hover) and (pointer: fine) { .app .ui-win__row:hover { background: color-mix(in oklab, var(--u-ink) 4%, var(--u-bg)); } }

/* the open pane: a browser bar, then the page; the joinery's homepage shows its old site under a line */
.app__pane--open { display: flex; flex-direction: column; background: #fff; }
.app__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); flex: none; background: var(--u-bg); }
.app__url { font: 400 12px/1 var(--font-mono); color: var(--u-muted, var(--p-muted)); padding: 6px 10px; border-radius: 999px; background: var(--u-bg-2, rgba(11, 12, 14, .05)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: pan-y; user-select: none; }
.ba__layer { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.ba__layer--old { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba__tag { position: absolute; top: 12px; z-index: 2; font: 500 13px/1 var(--font-text); padding: 6px 10px; border-radius: 999px; background: var(--p-ink); color: var(--p-bg); pointer-events: none; }
.ba__tag--old { left: 12px; }
.ba__tag--new { right: 12px; background: var(--p-accent); color: var(--p-accent-ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 44px; margin-left: -22px; z-index: 3; cursor: ew-resize; display: grid; place-items: center; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--p-accent); }
.ba__handle > span { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--p-accent); box-shadow: 0 0 0 4px #fff; }
.ba__handle > span::before { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 10px; background: linear-gradient(90deg, #fff 0 2px, transparent 2px 12px, #fff 12px 14px); }
.ba__handle:focus-visible > span { outline: 2px solid var(--p-ink); outline-offset: 4px; }
.ba[data-ba="off"] :is(.ba__layer--old, .ba__handle, .ba__tag) { display: none; }

/* the footer's language link */
.lang { font-weight: 500; }

/* plan cards: who it is for, in ink */
.plan__for { color: var(--ink); }
.faq__lede { font-size: var(--t-lead); }

/* the check's done steps read as done, not cancelled: a filled tick, no strike-through */
.ui-checks .ui-check__label::after { display: none; }
