/* =====================================================================
   Added 8 Nov 2026, restyled the same day: the hero "day dial" and the
   "Where is your week going?" calculator.
   They are built from the site's own pieces: the white and dark cards of
   the old hero picture, the pale teal "estimate" box and the white
   "estimator" panel from the pricing section. Same colours, same fonts,
   no new colours.
   ===================================================================== */

/* ---------------------------------------------------------- day dial */
/* A stack of three cards, like the picture it replaces:
   white (the clock and slider), dark (what happens now), pale (note). */

.dial { display: grid; gap: 14px; width: 100%; max-width: 470px; margin-left: auto; }
.dial-card { padding: 20px 22px 16px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-md); }
.dial-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); }
.dial-top span:first-child { font-weight: 700; color: var(--ink-2); }
.dial-clock { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 5.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.dial-clock small { font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--teal-eyebrow); }

.dial-track { position: relative; height: 48px; margin: 6px 0 0; }
.dial-bar, .dial-eve, .dial-fill { position: absolute; top: 20px; height: 8px; }
.dial-bar { left: 0; right: 0; border-radius: 8px; background: var(--line); }
.dial-eve { border-radius: 0 8px 8px 0; background: var(--teal-100); }
.dial-fill { left: 0; width: 0; border-radius: 8px 0 0 8px; background: var(--teal); }
.dial-track input[type=range] { position: absolute; inset: 0; width: 100%; height: 48px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: grab; }
.dial-track input[type=range]::-webkit-slider-runnable-track { height: 48px; background: transparent; }
.dial-track input[type=range]::-moz-range-track { height: 48px; background: transparent; }
.dial-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: 9px; border-radius: 50%; background: var(--surface); border: 5px solid var(--teal); box-shadow: var(--shadow-md); }
.dial-track input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 5px solid var(--teal); }
.dial-track input[type=range]:focus-visible { outline: none; }
.dial-track input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--ink); outline-offset: 3px; }
.dial-track input[type=range]:focus-visible::-moz-range-thumb { outline: 3px solid var(--ink); outline-offset: 3px; }
.dial-pin { position: absolute; top: 7px; width: 34px; height: 34px; margin-left: -17px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; z-index: 2; cursor: pointer; }
.dial-pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--surface); transition: transform .2s; }
.dial-pin.is-urgent i { background: var(--urgent); }
.dial-pin.is-on i { transform: scale(1.5); }
.dial-pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }

.dial-ticks { position: relative; height: 18px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.dial-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.dial-ticks span.is-eve { color: var(--teal-700); }

/* the dark card: what is happening at this time of day */
.dial-ev { display: grid; padding: 20px 22px; background: var(--ink); color: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }
.dial-evp { grid-area: 1 / 1; visibility: hidden; align-content: start; }
.dial-evp.is-on { visibility: visible; }
.dial-evh { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; letter-spacing: -.02em; color: #fff; }
.dial-tag { padding: 3px 11px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-family: var(--font); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dial-tag.is-urgent { background: var(--urgent-50); color: #8a3f1d; }
.dial-ev p { color: rgba(255, 255, 255, .82); font-size: .95rem; line-height: 1.5; }
.dial-ev p.dial-evh { color: #fff; font-size: 1.1rem; line-height: 1.3; }
.dial-ev dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 12px 0 0; font-size: .88rem; }
.dial-ev dt { color: rgba(255, 255, 255, .7); }
.dial-ev dd { margin: 0; font-weight: 650; }

/* the pale card: note and play button */
.dial-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 20px; background: var(--teal-50); border-radius: 20px; font-size: .88rem; color: var(--ink-2); }
.dial-foot .replay { background: var(--surface); }

/* -------------------------------------------------------- calculator */
/* Uses the pricing section's .estimator panel and .estimate box. */

.calc-grid.estimator { margin-top: 0; align-items: stretch; }
.calc-fld { display: grid; gap: 6px; margin-bottom: 22px; }
.calc-fld:last-child { margin-bottom: 0; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-row label { font-weight: 650; }
.calc-row output { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--teal); }
.calc-fine { font-size: .84rem; line-height: 1.5; color: var(--muted); }
.calc-fld input[type=range] { width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.calc-fld input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal) var(--p, 0%), var(--line) var(--p, 0%)); }
.calc-fld input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.calc-fld input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--teal); }
.calc-fld input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 4px solid var(--teal); box-shadow: var(--shadow-sm); }
.calc-fld input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--teal); }
.calc-fld input[type=range]:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.calc-grid .estimate { display: grid; gap: 12px; align-content: center; }
.calc-grid .estimate .figure { margin: 0; font-variant-numeric: tabular-nums; }
.calc-grid .estimate .figure small { margin-left: 6px; font-size: .4em; font-weight: 700; letter-spacing: -.01em; color: var(--ink-2); }
.calc-lines { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--teal-100); font-size: .95rem; color: var(--ink-2); }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-next { display: grid; gap: 12px; justify-items: start; padding-top: 14px; border-top: 1px solid var(--teal-100); }
.calc-next strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink); }

@media (max-width: 900px) {
  .dial { margin-inline: auto; max-width: 520px; }
}
@media (max-width: 600px) {
  .calc-next .btn { width: 100%; padding-inline: 14px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dial-pin i { transition: none; }
}
@media print {
  .dial { display: none !important; }
}
