/* Easy Suite hub, A day with Easy Suite look: under the hero, scroll through an ordinary day. A clock winds to each
   moment (SU-C1), the sky behind it goes from morning to evening (SU-C2), each moment lights up with the app that
   helps (SU-C3), and the day ends with a count (SU-C4). The section is added by hub-day.js. */

#day { padding-bottom: 40px; overflow-x: clip; }
#day .day-head { text-align: center; }
#day .day-head .lead { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: clamp(1.05rem, 1.8vw, 1.2rem); }
.day-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding-top: 30px; }

/* ---- SU-C1 and SU-C2 the clock under a sky that changes with the time ---- */
.day-clockbox {
  position: sticky; top: 24px; align-self: start; display: grid; justify-items: center; gap: 14px; padding: 30px 20px;
  border-radius: 26px; background: #F9DDB1; color: #1F1E1D; transition: background-color 1s var(--ease), color 1s;
}
.day-clockbox.night { color: #F1EEF8; }
.day-clock { width: min(240px, 70%); height: auto; }
.day-clock .hand { transform-origin: 100px 100px; transition: transform 1.2s var(--ease); }
.day-clock .face { fill: #fff; transition: fill 1s; }
.day-clockbox.night .day-clock .face { fill: #E9E6F3; }
.day-tnow { font: 800 2rem/1 "Segoe UI", system-ui, sans-serif; letter-spacing: -.01em; }
.day-anow { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .78); color: #1F1E1D; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 700; }
.day-anow img, .day-fix img { width: 32px; height: 32px; flex: none; }

/* ---- SU-C3 the moments of the day ---- */
.day-moments { display: grid; gap: 22px; padding-bottom: 24vh; }
.day-mo { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transform: translateX(14px); transition: opacity .5s, transform .5s var(--ease); }
.day-mo.on { opacity: 1; transform: none; }
.day-mo time { font: 800 .85rem/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .12em; color: var(--muted); }
.day-mo h3 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 8px 0 12px; line-height: 1.2; }
.day-fix {
  display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c);
  border-radius: 12px; padding: 14px 16px; color: var(--muted); text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.day-fix:hover { transform: translateX(4px); }
.day-fix p { margin: 0; }
.day-fix b { color: var(--text); }
.day-fix .soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soon-soft); color: var(--soon); }
html.calm .day-mo, html.calm .day-clock .hand, html.calm .day-clockbox { transition: none; }
html.calm .day-mo { transform: none; }

/* ---- SU-C4 the count at the end of the day ---- */
.day-tally { text-align: center; padding-top: 10px; }
.day-tally .nums { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; margin-top: 10px; }
.day-tally .nums b { display: block; font: 800 3.4rem/1 "Segoe UI", system-ui, sans-serif; color: var(--link); }
.day-tally .nums span { color: var(--muted); }

@media (max-width: 760px) {
  .day-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .day-clockbox { top: 0; z-index: 3; grid-template-columns: 70px 1fr; justify-items: start; align-items: center; gap: 4px 14px; padding: 12px 16px; border-radius: 0 0 18px 18px; }
  .day-clock { width: 70px; grid-row: span 2; }
  .day-tnow { font-size: 1.4rem; }
  .day-anow { font-size: .9rem; }
  .day-anow img { width: 26px; height: 26px; }
  .day-mo { min-height: 60vh; }
}
@media print { .day-mo { opacity: 1; transform: none; } .day-clockbox { position: static; } }
