/* Dial Hive: pre-launch "coming soon" page. Brand: Dial Green, Ivory, Champagne, one Brass minute hand. */

body:has(.dh-cs) { margin: 0; background: #12372A; }
body:has(.dh-cs) .wp-site-blocks { padding: 0 !important; }
body:has(.dh-cs) .wp-site-blocks > * { margin-block-start: 0 !important; }

.dh-cs {
  --green: #12372A; --deep: #0B241B; --ivory: #F2EDE3; --champagne: #E5CF9F; --brass: #C9A15A;
  --pad: clamp(20px, 5vw, 56px);
  position: relative; min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(24px, 4vw, 40px);
  padding: var(--pad); overflow: hidden;
  color: var(--ivory); font-family: var(--wp--preset--font-family--body, Inter, system-ui, sans-serif);
  background: radial-gradient(120% 90% at 70% 40%, #17442F 0%, var(--green) 45%, var(--deep) 100%);
}

.dh-cs__top { display: flex; justify-content: center; }
.dh-cs__logo { display: inline-flex; min-height: 44px; align-items: center; }
.dh-cs__logo img { width: clamp(132px, 14vw, 168px); height: auto; display: block; }

.dh-cs__body {
  align-self: center; justify-self: center; width: 100%; max-width: 1080px;
  display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center;
  gap: clamp(28px, 5vw, 56px);
}
@media (min-width: 900px) {
  .dh-cs__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; }
  .dh-cs__visual { order: 2; justify-self: center; }
}

.dh-cs__visual { width: min(78vw, 46vh, 440px); aspect-ratio: 1; }
@media (min-width: 900px) { .dh-cs__visual { width: min(40vw, 62vh, 480px); } }
.dh-cs__dial { width: 100%; height: 100%; display: block; overflow: visible; }
.dh-cs__dial .ring { fill: none; stroke: var(--champagne); stroke-opacity: .22; stroke-width: 1; }
.dh-cs__dial .min { stroke: var(--champagne); stroke-opacity: .35; stroke-width: 1; }
.dh-cs__dial .maj { stroke: var(--ivory); stroke-opacity: .85; stroke-width: 2; }
.dh-cs__dial .hands line { stroke-linecap: round; }
.dh-cs__dial .h-hour { stroke: var(--ivory); stroke-width: 5; }
.dh-cs__dial .h-min { stroke: var(--brass); stroke-width: 3; }
.dh-cs__dial .h-sec { stroke: var(--champagne); stroke-width: 1.25; }
.dh-cs__dial .pin { fill: var(--brass); }
.dh-cs__dial .pin-in { fill: var(--deep); }
/* Until the script sets the time, keep the hands hidden so they never flash at 12:00 */
.dh-cs__dial:not(.is-live) .hands { opacity: 0; }
.dh-cs__dial .hands { transition: opacity .4s ease; }

.dh-cs__copy { max-width: 30rem; }
.dh-cs__title {
  margin: 0; font-family: var(--wp--preset--font-family--display, Questrial, sans-serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.02em; color: var(--ivory);
}
.dh-cs__lead { margin: clamp(16px, 2vw, 24px) 0 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--champagne); }
.dh-cs__actions { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dh-cs__actions .dh-cs__btn { min-width: 220px; }
@media (min-width: 900px) { .dh-cs__actions { flex-direction: row; justify-content: flex-start; gap: 12px 24px; } .dh-cs__actions .dh-cs__btn { min-width: 0; } }
.dh-cs__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; background: var(--ivory); color: var(--green); text-decoration: none;
  font-family: var(--wp--preset--font-family--display, Questrial, sans-serif); font-size: 16px; letter-spacing: .01em;
  transition: background-color .2s ease, transform .2s ease;
}
.dh-cs__btn:hover { background: #fff; }
.dh-cs__btn:active { transform: scale(.98); }
.dh-cs__link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); font-size: 16px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(242, 237, 227, .5);
}
.dh-cs__link:hover { text-decoration-color: var(--ivory); }
.dh-cs a:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 999px; }

.dh-cs__meta {
  display: flex; justify-content: center; text-align: center;
  font-family: var(--wp--preset--font-family--display, Questrial, sans-serif); font-size: 13px; letter-spacing: .04em;
  color: rgba(242, 237, 227, .7);
}

/* One orchestrated moment: the indices draw in, then the hands sweep from 12 to the visitor's time (assets/js/coming-soon.js). */
@media (prefers-reduced-motion: no-preference) {
  .dh-cs__dial > line { opacity: 0; animation: dh-cs-tick .5s ease forwards; animation-delay: calc(var(--i) * 14ms); }
  .dh-cs__copy > * { opacity: 0; transform: translateY(8px); animation: dh-cs-rise .7s ease forwards; }
  .dh-cs__copy > :nth-child(2) { animation-delay: .12s; }
  .dh-cs__copy > :nth-child(3) { animation-delay: .24s; }
}
@keyframes dh-cs-tick { to { opacity: 1; } }
@keyframes dh-cs-rise { to { opacity: 1; transform: none; } }

/* Waitlist button + dialog */
button.dh-cs__btn { border: 0; cursor: pointer; }
.dh-cs__actions .dh-cs__btn { min-width: 220px; }

.dh-wl {
  --green: #12372A; --ivory: #F2EDE3; --ink: #111; --stone: #D8D0C2; --err: #9B2C1F;
  width: min(100% - 32px, 440px); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0;
  border-radius: 20px; background: var(--ivory); color: var(--green); overflow: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  font-family: var(--wp--preset--font-family--body, Geist, system-ui, sans-serif);
}
.dh-wl::backdrop { background: rgba(5, 18, 13, .6); backdrop-filter: blur(4px); }
@media (max-width: 600px) {
  .dh-wl { width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}
.dh-wl__panel { position: relative; padding: 32px 24px 24px; }
@media (min-width: 601px) { .dh-wl__panel { padding: 40px 32px 32px; } }
.dh-wl__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px;
  display: grid; place-items: center; background: transparent; color: var(--green); cursor: pointer;
}
.dh-wl__close:hover { background: rgba(18, 55, 42, .08); }
.dh-wl__title { margin: 0; padding-right: 40px; font-family: var(--wp--preset--font-family--display, Questrial, sans-serif); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; color: var(--green); }
.dh-wl__lead { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: #3A5348; }
.dh-wl__form { margin-top: 24px; display: grid; gap: 16px; }
.dh-wl__field { display: grid; gap: 6px; }
.dh-wl__field label { font-size: 14px; font-weight: 500; color: var(--green); }
.dh-wl__field input {
  box-sizing: border-box; width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--stone); border-radius: 12px;
  background: #fff; color: var(--ink); font: 16px/1 var(--wp--preset--font-family--body, Geist, system-ui, sans-serif);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dh-wl__field input::placeholder { color: #8A938E; }
.dh-wl__field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 55, 42, .15); }
.dh-wl__field input[aria-invalid="true"] { border-color: var(--err); }
.dh-wl__err { margin: 0; font-size: 14px; line-height: 1.4; color: var(--err); }
.dh-wl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dh-wl__submit {
  width: 100%; min-height: 52px; margin-top: 4px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: var(--ivory); font: 16px/1 var(--wp--preset--font-family--display, Questrial, sans-serif); letter-spacing: .01em;
  transition: background-color .2s ease, opacity .2s ease;
}
.dh-wl__submit:hover { background: #0B241B; }
.dh-wl__submit[disabled] { opacity: .6; cursor: progress; }
.dh-wl__note { margin: 0; text-align: center; font-size: 13px; color: #5B6F66; }
.dh-wl__done { text-align: center; padding-top: 8px; }
.dh-wl__done .dh-wl__title { padding-right: 0; margin-top: 16px; }
.dh-wl__done .dh-wl__submit { margin-top: 24px; }
.dh-wl__tick { color: var(--green); }
.dh-wl :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .dh-wl[open] { animation: dh-wl-in .25s cubic-bezier(.2, .7, .1, 1); }
  @media (max-width: 600px) { .dh-wl[open] { animation-name: dh-wl-up; } }
}
@keyframes dh-wl-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes dh-wl-up { from { transform: translateY(100%); } }
@media (max-width: 600px) { .dh-wl__panel { padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
