/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
}
.product-name { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.product-name img { width: 36px; height: 36px; }
.hero h1 { font-size: clamp(38px, 4.9vw, 60px); text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }

.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger.is-undo { background: var(--paper); color: var(--ink); border-color: var(--grid); }
@media (prefers-color-scheme: dark) {
  .btn-danger { background: #e0584c; color: #1a0f0e; }
}

/* ---------- the demo week ---------- */
.demo {
  margin: 0;
  border: 1px solid var(--grid);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}
.demo-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--grid);
  font-size: 15px;
}
.demo-title { font-weight: 750; }
.demo-cal { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.swatch-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dup); }

.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--wash);
  min-height: 330px;
}
.day { border-right: 1px solid var(--grid); padding: 10px 6px 14px; }
.day:last-child { border-right: none; }
.day-name { font-size: 13px; color: var(--ink-2); padding: 0 4px 8px; }
.day-name b { display: block; font-size: 20px; color: var(--ink); font-weight: 750; line-height: 1.1; }
.day ol { list-style: none; margin: 0; padding: 0; }

.ev {
  display: grid;
  grid-template-rows: 1fr;
  margin-bottom: 5px;
  transition: grid-template-rows 320ms ease, opacity 240ms ease, margin 320ms ease;
  transition-delay: calc(var(--i, 0) * 28ms);
}
.ev > div {
  overflow: hidden;
  min-height: 0;
  border-radius: 6px;
  border-left: 3px solid var(--c, var(--blue));
  background: color-mix(in srgb, var(--c, var(--blue)) 14%, var(--paper));
  font-size: 12.5px;
  line-height: 1.3;
  padding: 5px 7px;
  position: relative;
}
.ev time { display: block; color: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ev.dup > div { background: var(--dup-fill); border-left-color: var(--dup); padding-right: 22px; }
.ev.dup > div::after {
  content: "";
  position: absolute; right: 6px; top: 7px;
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--dup);
  /* a check mark cut out of the square */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect width='12' height='12' rx='3'/%3E%3C/svg%3E");
}
.ev.dup > div::before {
  content: "";
  position: absolute; right: 8.5px; top: 9px; z-index: 1;
  width: 6px; height: 3.5px;
  border-left: 1.8px solid var(--paper); border-bottom: 1.8px solid var(--paper);
  transform: rotate(-45deg);
}
.week.cleared .ev.dup { grid-template-rows: 0fr; opacity: 0; margin-bottom: 0; }
.week.cleared .ev.dup > div { padding-top: 0; padding-bottom: 0; }

.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; border-top: 1px solid var(--grid);
}
.demo-status { font-size: 15px; color: var(--ink-2); }
.demo-bar .btn { font-size: 15px; padding: 9px 16px; }
.demo-fallback { padding: 24px; margin: 0; color: var(--ink-2); grid-column: 1 / -1; }

@media (prefers-reduced-motion: reduce) {
  .ev { transition: none; }
}

/* ---------- sections ---------- */
.band { margin-top: 120px; }
.band > h2 { margin-bottom: 32px; }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin: 0; max-width: 920px; }
.cases div { border-top: 1px solid var(--grid); padding-top: 16px; }
.cases dt { font-weight: 750; font-size: 19px; }
.cases dd { margin: 6px 0 0; color: var(--ink-2); max-width: 44ch; }

.actions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.actions h3 { margin-top: 18px; }
.actions p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.chip {
  display: inline-block; font-size: 13px; line-height: 1.2; padding: 7px 10px 7px 9px;
  border-radius: 6px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, var(--paper));
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.chip-gone { --c: var(--dup); text-decoration: line-through; opacity: 0.55; }
.chip-move { --c: var(--keep-2); box-shadow: -10px 0 0 -3px var(--wash); }
.chip-shift { --c: var(--blue); margin-left: 28px; }
.chip-color { --c: var(--keep-1); background: var(--keep-1); color: #fff; }

.shot { display: block; margin-top: 56px; border: 1px solid var(--grid); border-radius: 12px; }

.careful-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.careful-grid p { color: var(--ink-2); margin: 8px 0 0; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 780px; margin-bottom: 32px; }
.plan { border: 1px solid var(--grid); border-radius: 14px; padding: 24px 26px; }
.plan-main { border: 2px solid var(--blue); }
.plan p { margin: 8px 0 0; color: var(--ink-2); }
.plan .price { font-size: 46px; font-weight: 850; color: var(--ink); letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.plan .price span { font-size: 18px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--grid); }
.faq details:last-child { border-bottom: 1px solid var(--grid); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 0; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .lede { max-width: 46ch; }
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .careful-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day:nth-child(n + 4) { display: none; }
  .day:nth-child(3) { border-right: none; }
  .cases, .actions, .plans { grid-template-columns: 1fr; }
  .band { margin-top: 88px; }
  .demo-bar { flex-wrap: wrap; }
}
