/* The Office Cleaning Checklist plan builder (/office-cleaning-checklist). Adds to landing.css,
 * clean.css and move-out-checklist.css (tick boxes, share card). Its one new idea is frequency as
 * colour: daily green, weekly cyan, monthly ocean, quarterly gold, used the same way on the rhythm
 * strip, the filter, every task chip and the plan bar, so the plan reads at a glance. */

.oc-body {
  --oc-daily: var(--ld-green-deep);
  --oc-weekly: var(--ld-cyan-deep);
  --oc-monthly: var(--ld-ocean);
  --oc-quarterly: var(--ld-gold-deep);
}
.is-daily { --oc: var(--oc-daily); }
.is-weekly { --oc: var(--oc-weekly); }
.is-monthly { --oc: var(--oc-monthly); }
.is-quarterly { --oc: var(--oc-quarterly); }
.oc-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--oc); }

/* ---------------------------------------------------------------- rhythm strip */
.oc-rhythm { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ld-line); }
.oc-rhythm li { position: relative; padding: 26px 22px 6px 0; }
.oc-rhythm li::before { content: ""; position: absolute; top: -3px; left: 0; right: 14px; height: 3px; background: var(--oc); border-radius: 0 0 3px 3px; }
.oc-rhythm-n { display: block; font-family: 'Montserrat', sans-serif; font-size: 44px; font-weight: 900; font-style: italic; line-height: 1; color: var(--oc); font-variant-numeric: tabular-nums; }
.oc-rhythm h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 900; }
.oc-rhythm p { margin: 0; max-width: 28ch; font-size: 15px; line-height: 1.55; color: var(--ld-ink-soft); }

/* ---------------------------------------------------------------- filter */
.oc-filter {
  position: sticky; top: 84px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 8px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--ld-shadow-sm), inset 0 0 0 1px var(--ld-line);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); width: max-content; max-width: 100%;
}
.oc-filter button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  font: 800 14px 'Montserrat', sans-serif; color: var(--ld-ink); transition: background 0.18s ease, color 0.18s ease;
}
.oc-filter button em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ld-ink-soft); font-variant-numeric: tabular-nums; }
.oc-filter button:hover { background: var(--ld-soft); }
.oc-filter button.is-on { background: var(--ld-navy); color: #fff; }
.oc-filter button.is-on em { color: rgba(255, 255, 255, 0.7); }
.oc-filter button:focus-visible { outline: 3px solid rgba(12, 133, 194, 0.35); outline-offset: 2px; }

/* ---------------------------------------------------------------- layout */
.oc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.oc-zones { display: grid; gap: 28px; }
.oc-zone { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; padding: 28px; border-radius: 24px; background: #fff; box-shadow: var(--ld-shadow-sm), inset 0 0 0 1px var(--ld-line); scroll-margin-top: 150px; }
.oc-zone-wide { grid-template-columns: minmax(0, 1fr); }
.oc-zone.cl-every { background: var(--ld-soft); box-shadow: none; }
.oc-zone-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #E7EEF0; }
.oc-zone-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-zone-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.oc-zone-n { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ld-cyan); color: #fff; font: 900 16px 'Montserrat', sans-serif; }
.oc-zone h3 { margin: 2px 0 4px; font-size: 22px; font-weight: 900; font-style: italic; line-height: 1.15; }
.oc-zone-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ld-ink-soft); }
.oc-tasks-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.oc-zone.is-empty { display: none; }

/* Tasks: the shared tick box, plus a frequency chip. Unticked tasks fade back rather than vanish. */
.oc-task { align-items: center; }
.oc-task .mo-box { margin-top: 0; }
.oc-task input:checked ~ .mo-text { text-decoration: none; color: var(--ld-ink); }
.oc-task input:not(:checked) ~ .mo-text { color: #9AACB8; text-decoration: line-through; text-decoration-color: rgba(154, 172, 184, 0.7); }
.oc-task input:not(:checked) ~ .oc-chip { opacity: 0.4; }
.oc-chip {
  flex: none; padding: 3px 9px; border-radius: 999px; font: 800 11px 'Montserrat', sans-serif; letter-spacing: 0.01em;
  color: var(--oc); background: color-mix(in srgb, var(--oc) 12%, #fff); transition: opacity 0.2s ease;
}
.mo-tasks li[hidden] { display: none; }

.oc-notus { padding: 22px 26px; border-radius: 20px; border: 1.5px dashed #C9DAE1; }
.oc-notus h3 { margin: 0 0 10px; font-size: 17px; font-weight: 900; }
.oc-notus ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.oc-notus li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ld-ink); }
.oc-notus li svg { width: 14px; height: 14px; flex: none; color: #B0464A; }
.oc-notus p { margin: 0; font-size: 13.5px; color: var(--ld-ink-soft); }

/* ---------------------------------------------------------------- your plan */
.oc-plan { position: sticky; top: 160px; }
.oc-plan-card { padding: 26px; border-radius: 24px; background: var(--ld-navy); color: #fff; box-shadow: var(--ld-shadow-lg); }
.oc-plan-top { display: flex; justify-content: space-between; align-items: center; }
.oc-plan h3 { margin: 0; font-size: 22px; font-weight: 900; font-style: italic; color: #fff; }
.oc-plan-close { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; place-items: center; }
.oc-plan-close svg { width: 16px; height: 16px; }
.oc-plan-total { margin: 6px 0 16px; font-size: 14.5px; color: rgba(255, 255, 255, 0.75); }
.oc-plan-total b { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.oc-plan-freq { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.oc-plan-freq li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.oc-plan-freq b { margin-left: auto; font-family: 'Montserrat', sans-serif; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.oc-plan .is-daily { --oc: #8FD36E; }
.oc-plan .is-weekly { --oc: #7FD0E2; }
.oc-plan .is-monthly { --oc: #5DB6EA; }
.oc-plan .is-quarterly { --oc: #FFC94D; }
.oc-plan-bar { display: flex; gap: 3px; height: 8px; margin-bottom: 20px; border-radius: 999px; overflow: hidden; }
.oc-plan-bar i { display: block; min-width: 0; background: var(--oc); transition: flex-grow 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.oc-plan-form { display: grid; gap: 10px; margin-bottom: 16px; }
.oc-plan-form label { display: grid; gap: 4px; }
.oc-plan-form span { font: 700 12.5px 'Montserrat', sans-serif; color: rgba(255, 255, 255, 0.75); }
.oc-plan-form input {
  height: 42px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(255, 255, 255, 0.07);
  font: 14.5px 'Open Sans', sans-serif; color: #fff; caret-color: #8FD36E;
}
.oc-plan-form input::placeholder { color: rgba(255, 255, 255, 0.42); }
.oc-plan-form input:focus { outline: none; border-color: #8FD36E; background: rgba(255, 255, 255, 0.11); }
.oc-plan-send { width: 100%; justify-content: center; }
.oc-plan-send svg, .oc-plan-row svg { width: 17px; height: 17px; }
.oc-plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.oc-plan-row .ld-btn { justify-content: center; background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); box-shadow: none; }
.oc-plan-row .ld-btn:hover { background: rgba(255, 255, 255, 0.16); }
.oc-plan-note { margin: 12px 0 0; min-height: 2.8em; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.6); }

.oc-mbar { display: none; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) {
  .oc-grid { grid-template-columns: minmax(0, 1fr); }
  .oc-zone { grid-template-columns: 200px minmax(0, 1fr); }
  /* The plan becomes a sheet that opens from a bar at the bottom of the screen. */
  .oc-plan { position: fixed; inset: auto 0 0 0; top: auto; z-index: 60; max-height: 88vh; overflow-y: auto; padding: 0 10px 10px; transform: translateY(105%); transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1); }
  .oc-plan.is-open { transform: none; }
  .oc-plan-card { border-radius: 24px 24px 18px 18px; }
  .oc-plan-close { display: grid; }
  .oc-mbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 58px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--ld-navy); color: #fff; cursor: pointer; box-shadow: var(--ld-shadow-lg);
    font: 600 14.5px 'Open Sans', sans-serif; transform: translateY(150%); transition: transform 0.3s ease;
  }
  .oc-mbar.is-shown { transform: none; }
  .oc-mbar b { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 17px; }
  .oc-mbar-go { display: inline-flex; align-items: center; gap: 6px; font: 800 14px 'Montserrat', sans-serif; color: #8FD36E; }
  .oc-mbar-go svg { width: 15px; height: 15px; }
}
@media (max-width: 760px) {
  .oc-rhythm { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .oc-filter { top: 70px; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .oc-filter::-webkit-scrollbar { display: none; }
  .oc-filter button { flex: none; padding: 0 12px; }
  .oc-zone { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .oc-zone-photo { aspect-ratio: 16 / 9; }
  .oc-tasks-cols { grid-template-columns: minmax(0, 1fr); }
  .oc-task { flex-wrap: wrap; }
  .oc-chip { margin-left: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-plan, .oc-mbar, .oc-plan-bar i, .oc-chip { transition: none; }
}

/* ---------------------------------------------------------------- print: the plan, as a checklist */
@media print {
  .oc-filter, .oc-plan, .oc-mbar, #rhythm, .oc-zone-photo, .oc-notus, .mo-hire, .mo-share, #faq,
  .ld-header, .ld-topbar, .cl-hero-img, .ld-hero-cta, .ld-hero-ticks, footer, .ld-footer, .chat-root, [class*="sp-"], .pm { display: none !important; }
  .cl-hero { min-height: 0 !important; padding: 0 !important; background: none !important; }
  .cl-hero-panel { box-shadow: none !important; background: none !important; padding: 0 !important; backdrop-filter: none !important; max-width: none !important; }
  .cl-hero h1 { font-size: 22pt !important; color: #000 !important; }
  .cl-lede { font-size: 10pt !important; }
  .oc-grid, .oc-zone { display: block !important; box-shadow: none !important; padding: 0 !important; background: none !important; }
  .oc-zones { gap: 5mm !important; }
  .oc-zone h3 { font-size: 14pt !important; color: #000 !important; }
  .oc-zone-head p { font-size: 9.5pt !important; }
  .oc-zone-n { background: #000 !important; }
  .mo-tasks, .oc-tasks-cols { display: grid !important; grid-template-columns: 1fr 1fr !important; column-gap: 8mm !important; }
  /* Only what is in the plan prints. */
  .mo-tasks li:has(input:not(:checked)) { display: none !important; }
  .mo-tasks li[hidden] { display: list-item !important; }
  .oc-task { padding: 1.4mm 0 !important; font-size: 9.5pt !important; break-inside: avoid; }
  .mo-box { width: 11pt !important; height: 11pt !important; border: 1.2pt solid #000 !important; background: #fff !important; color: #fff !important; }
  .oc-chip { background: none !important; border: 0.8pt solid #555 !important; color: #000 !important; }
  .ld-reveal { opacity: 1 !important; transform: none !important; }
}
