/* Day/night hero for the home page draft (2026-10-22).
   The section's background shifts from daylight blue to evening navy as the
   bar moves; --night (0..1) is set by daynight.js. */
.dn-hero {
  --night: .5;
  --day-bg: #E4F7FF;
  --night-bg: #0A406B;
  --ember: #FF8A3D;
  background: var(--night-bg);
  background: color-mix(in oklch, var(--night-bg) calc(var(--night) * 100%), var(--day-bg));
  color: #0A406B;
  padding: 150px 0 72px;
  transition: color .35s ease;
}
.dn-hero.is-night { color: #fff; }
/* Placed under the home banner instead of at the very top */
.dn-section { padding: 88px 0; }
.dn-section .dn-title { font-size: clamp(2rem, 3.2vw, 3rem); }
.dn-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.dn-title { font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 22px; color: inherit; text-transform: none; }
.dn-lede { font-size: 1.15rem; line-height: 1.6; max-width: 34ch; margin: 0 0 28px; opacity: .9; }
.dn-model { margin: 0 0 30px; font-size: 1rem; line-height: 1.4; }
.dn-model strong { display: block; font-family: Raleway, "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.25rem; }
.dn-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dn-btn { display: inline-block; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.dn-btn--solid { background: #0A406B; color: #fff; border: 2px solid #0A406B; }
.dn-btn--line { border: 2px solid currentColor; color: inherit; }
.dn-hero.is-night .dn-btn--solid { background: #fff; color: #0A406B; border-color: #fff; }
.dn-btn:hover, .dn-btn:focus-visible { text-decoration: none; filter: brightness(1.08); }
.dn-btn--line:hover, .dn-btn--line:focus-visible { color: inherit; background: rgba(255,255,255,.12); }
.dn-btn:focus-visible, .dn-pick:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }


/* The photo pair */
.dn-compare { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(4, 22, 38, .55); background: #0A406B; user-select: none; }
.dn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-night { clip-path: inset(0 0 0 var(--pos, 50%)); }
.dn-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(255,138,61,.8); pointer-events: none; }
.dn-knob { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; border: 3px solid var(--ember); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.dn-knob::before, .dn-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px; border: 7px solid transparent; }
.dn-knob::before { left: 7px; border-right-color: #0A406B; }
.dn-knob::after { right: 7px; border-left-color: #0A406B; }
.dn-tag { position: absolute; top: 16px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; pointer-events: none; }
.dn-tag--day { left: 16px; background: rgba(255,255,255,.92); color: #0A406B; }
.dn-tag--night { right: 16px; background: rgba(7,47,79,.85); color: #fff; }
.dn-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.dn-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; }
.dn-range::-moz-range-thumb { width: 60px; height: 100vh; border: 0; }
.dn-compare:has(.dn-range:focus-visible) .dn-knob { outline: 3px solid var(--ember); outline-offset: 4px; }

/* Model picker */
.dn-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.dn-pick { display: flex; align-items: center; gap: 8px; padding: 6px; min-width: 0; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.55); color: #0A406B; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.dn-hero.is-night .dn-pick { background: rgba(255,255,255,.1); color: #fff; }
.dn-pick img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.dn-pick span { font-size: .85rem; line-height: 1.25; min-width: 0; word-break: keep-all; overflow-wrap: normal; }
.dn-pick b { display: block; font-size: .92rem; white-space: nowrap; }
.dn-pick[aria-selected="true"] { border-color: var(--ember); background: #fff; color: #0A406B; }

@media (min-width: 992px) and (max-width: 1199px) {
  .dn-picks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .dn-hero { padding: 110px 0 48px; }
  .dn-grid { grid-template-columns: 1fr; gap: 28px; }
  .dn-lede { max-width: none; }
}
@media (max-width: 575px) {
  .dn-picks { grid-template-columns: repeat(2, 1fr); }
  .dn-knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}
@media (prefers-reduced-motion: reduce) {
  .dn-hero, .dn-btn, .dn-pick { transition: none; }
}
