/* Homepage hero: the two ways to work with us. A Ready-made card, a Custom card, and between them one tool
   window you can drag across: finished and branded on the left (ready-made), a blueprint drawn to order on the
   right (custom). ways.js moves the line and lights the card for the side you're leaning toward. */
.home-hero { padding-top: clamp(28px, 5vw, 64px); }
.home-hero__copy { max-width: 1100px; }
.home-hero h1 { max-width: 19em; font-size: clamp(34px, 4.7vw, 64px); }
.home-hero__lede { margin-top: 16px; }

.ways {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px); align-items: stretch;
  margin-top: clamp(30px, 4.5vw, 52px);
}
.js .home-hero .ways.reveal { --d: 320ms; }

/* ---------- the two cards ---------- */
.way {
  --tone: var(--accent);
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(18px, 2vw, 24px); border-radius: 18px;
  border: 1px solid var(--line); background: var(--glass);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.way--custom { --tone: #8ec5ff; }
.way.lit { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 7%, transparent); }
.way__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.way__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--tone); transition: background-color 0.3s, box-shadow 0.3s; }
.way.lit .way__tag { color: var(--tone); }
.way.lit .way__dot { background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent); }
.way h2 { font-size: clamp(20px, 1.8vw, 23px); line-height: 1.15; }
.way > p:not(.way__tag) { font-size: 15px; color: var(--ink-2); }
.way__facts { display: grid; gap: 7px; margin: 2px 0 6px; padding: 0; list-style: none; font-size: 12px; color: var(--ink-2); }
.way__facts li { display: flex; align-items: center; gap: 8px; }
.way__facts .ico { color: var(--tone); stroke-width: 2.25; }
.way__btn { align-self: flex-start; margin-top: auto; }
.way--custom .btn--ghost { border-color: color-mix(in srgb, var(--tone) 45%, transparent); }

/* ---------- the split window ---------- */
.ways__split {
  --x: 50%;
  position: relative; margin: 0; align-self: center; width: 100%;
  aspect-ratio: 640 / 420; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ways__art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ways__art--done { clip-path: inset(0 calc(100% - var(--x)) 0 0); }

.ways__art text { font-family: var(--font); }
.ways__art .t-mono { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; }
.ways__art .t-url { font-size: 10px; fill: #8a8478; }
.ways__art .t-brand { font-size: 13.5px; font-weight: 700; fill: #1d2a24; }
.ways__art .t-sm { font-size: 10.5px; fill: #6b7280; }
.ways__art .t-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; fill: #6b7280; }
.ways__art .t-chip { font-size: 11px; font-weight: 600; fill: #4b5560; }
.ways__art .t-chip--on { fill: #fff; }
.ways__art .t-price { font-size: 28px; font-weight: 700; fill: #1d2a24; }
.ways__art .t-btn { font-size: 13px; font-weight: 600; fill: #fff; }
.ways__art .t-badge { font-size: 8.5px; font-weight: 600; letter-spacing: 0.1em; }
.ways__art .t-bp { fill: #bcd6f5; }
.ways__art .t-yel { fill: #ffc629; }
.ways__art .t-big { font-size: 14px; }
.ways__art .t-note { font-family: var(--serif); font-style: italic; font-size: 21px; fill: #ffc629; }
.ways__art .bp { fill: none; stroke: #bcd6f5; stroke-width: 1.3; stroke-linejoin: round; }
.ways__art .bp-dash { stroke-dasharray: 5 4; }
.ways__art .bp-dim { fill: none; stroke: #ffc629; stroke-width: 1; }

/* The line and its knob */
.ways__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.ways__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--accent); box-shadow: 0 0 14px rgba(255, 198, 41, 0.55); }
.ways__knob {
  position: absolute; top: 50%; left: 0; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--accent); color: var(--accent-ink); font-size: 22px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 198, 41, 0.18);
  pointer-events: auto; cursor: ew-resize; touch-action: none;
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s;
}
.ways__knob .ico { stroke-width: 2.25; }
.ways__split.dragging .ways__knob { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 0 10px rgba(255, 198, 41, 0.22); }
.ways__knob:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 50%; }
.ways__hint {
  position: absolute; top: calc(50% + 32px); left: 0; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 999px; background: rgba(7, 20, 38, 0.85);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  transition: opacity 0.3s;
}
.ways__split.touched .ways__hint { opacity: 0; }

/* ---------- smaller screens: the window on top, the two cards side by side under it ---------- */
@media (max-width: 1040px) {
  .ways { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ways__split { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 620px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ways__knob { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .way, .way__dot, .ways__knob, .ways__hint { transition: none; }
}
