/* =====================================================================
   TEST – transition to the dark pricing area (layout trial)
   A hard edge from the light page into near-black; the side rails continue
   in dark grey; a horizon arc with a warm-sand → white → Etalier-blue rim.
   ===================================================================== */
.dk {
  --dk-bg: #121212;
  --dk-line: rgba(255, 255, 255, 0.09);
  --dk-text: #f4f2ee;
  --dk-muted: #8f8d88;
  position: relative; z-index: 5;            /* covers the light frame rails */
  background: var(--dk-bg); color: var(--dk-text);
  overflow: hidden;
}
/* dark rails at the same place as the light ones */
.dk::before, .dk::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--dk-line); z-index: 2; pointer-events: none;
}
.dk::before { left: var(--rail); }
.dk::after { right: var(--rail); }

/* ---------- stage: headline above a rising horizon ---------- */
.dk__stage {
  position: relative;
  height: clamp(560px, 62vw, 860px);
  margin: 0 var(--rail);
  /* faint vertical hairlines, strongest near the horizon */
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  -webkit-mask-image: none;
}
.dk__head {
  position: absolute; left: 0; right: 0; top: 30%; z-index: 3;
  text-align: center; padding: 0 var(--pad);
}
.dk__kicker { margin: 0 0 14px; font-size: clamp(14px, 1.2vw, 17px); color: var(--dk-muted); }
.dk__title {
  margin: 0;
  font-size: clamp(46px, 7.6vw, 116px); line-height: 1; font-weight: 600; letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--dk-text);
}

.dk__horizon {
  position: absolute; inset: 0; overflow: hidden; z-index: 1;
}
/* the dark disc of the horizon is there from the start … */
.dk__arc, .dk__rim {
  position: absolute; left: 50%; top: 58%;
  width: 150%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 0);
}
.dk__arc { background: var(--dk-bg); }
/* … only its coloured rim (with the glow) is drawn from left to right */
.dk__rim {
  pointer-events: none;
  clip-path: inset(-160px 100% -160px -160px);
  transition: clip-path 1400ms cubic-bezier(0.45, 0, 0.2, 1) 250ms;
}
.dk.is-in .dk__rim { clip-path: inset(-160px -160px -160px -160px); }
.dk__glow, .dk__ring { position: absolute; inset: 0; border-radius: 50%; }
.dk__glow {
  box-shadow:
    0 -24px 80px -30px rgba(255, 246, 230, 0.35),
    0 -2px 40px -12px rgba(169, 182, 255, 0.25);
}
.dk__ring {
  border: 1.5px solid transparent;
  background: linear-gradient(90deg, #c98a52 0%, #e9d8b4 26%, #ffffff 50%, #a9b6ff 72%, var(--accent) 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}

/* kicker and headline appear when you scroll there */
.dk__kicker, .dk__title { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 1100ms cubic-bezier(0.2, 0, 0, 1); }
.dk__title { transition-delay: 140ms; }
.dk.is-in .dk__kicker, .dk.is-in .dk__title { opacity: 1; transform: none; }

/* ---------- four quiet columns ---------- */
.dk__cols {
  list-style: none; margin: 0 var(--rail); padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--dk-line);
}
.dk__cols li {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(28px, 2.6vw, 40px) var(--pad) clamp(36px, 3.4vw, 52px);
  border-right: 1px solid var(--dk-line);
  min-height: clamp(200px, 17vw, 260px);
}
.dk__cols li:last-child { border-right: 0; }
.dk__cols svg { width: 22px; height: 22px; stroke-width: 1.5; color: #a4a19b; margin-bottom: auto; }
.dk__cols b { margin-top: 28px; font-size: 17px; font-weight: 500; color: var(--dk-text); }
.dk__cols span { font-size: 15px; line-height: 1.45; color: var(--dk-muted); max-width: 26ch; }

/* ---------- placeholder for the plans ---------- */
.dk__plans {
  margin: 0 var(--rail); padding: clamp(56px, 6vw, 96px) var(--pad);
  border-top: 1px solid var(--dk-line);
  text-align: center;
}
.dk__soon { margin: 0; font-size: 14px; color: var(--dk-muted); }

@media (max-width: 899px) {
  .dk__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk__cols li:nth-child(2) { border-right: 0; }
  .dk__cols li:nth-child(-n+2) { border-bottom: 1px solid var(--dk-line); }
}
@media (max-width: 560px) {
  .dk__stage { height: 520px; }
  .dk__head { top: 26%; }
  .dk__arc, .dk__rim { width: 230%; top: 60%; }
  .dk__cols { grid-template-columns: minmax(0, 1fr); }
  .dk__cols li { border-right: 0; border-bottom: 1px solid var(--dk-line); min-height: 0; }
  .dk__cols b { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dk__kicker, .dk__title { transition: none !important; opacity: 1; transform: none; }
  .dk__rim { transition: none; clip-path: none; }
}

/* ---------- the sticky header inverts over the dark area ---------- */
/* while flipping, nothing fades: background, lines and text change in the same frame
   (hover transitions stay soft the rest of the time) */
.header.is-flipping, .header.is-flipping::after, .header.is-flipping *,
.mobile-nav.is-flipping, .mobile-nav.is-flipping * { transition: none !important; }
.header.is-dark { background: #121212; }   /* opaque: the light page behind must not shine through */
.header.is-dark::after { border-color: rgba(255, 255, 255, 0.09); }
.header.is-dark .logo img { filter: invert(1); }
.header.is-dark .nav__link, .header.is-dark .login { color: #c9c6c0; }
.header.is-dark .nav__link:hover, .header.is-dark .nav__link:focus-visible,
.header.is-dark .login:hover { color: #fff; }
.header.is-dark .nav__link::after { background: #fff; }
.header.is-dark .chev { color: #8f8d88; }
.header.is-dark .btn--dark { background: #f4f2ee; color: #121212; }
.header.is-dark .btn--dark:hover { background: #fff; }
.header.is-dark .burger span { background: #f4f2ee; }
.mobile-nav.is-dark { background: #121212; color: #f4f2ee; border-color: rgba(255, 255, 255, 0.09); }
.mobile-nav.is-dark a { border-color: rgba(255, 255, 255, 0.09); }
