/* Website design package page */

.wd-page {
  overflow-x: hidden;
}

.wd-hero {
  position: relative;
  padding: clamp(4rem, 12vw, 6.5rem) 0 clamp(3rem, 8vw, 4.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 85% 80%, rgba(232, 163, 23, 0.1), transparent 45%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
}

.wd-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .wd-hero__grid {
    grid-template-columns: 1fr;
  }
}

.wd-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a5b4fc;
  margin: 0 0 0.75rem;
}

.wd-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f4f6fa;
  margin: 0 0 1rem;
}

.wd-hero__lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #9aa3b2;
  max-width: 40rem;
}

.wd-hero__spec {
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.12), rgba(20, 24, 32, 0.95));
  padding: 1.35rem 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.wd-hero__spec-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c7d2fe;
  margin: 0 0 1rem;
}

.wd-hero__spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.wd-hero__spec-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.wd-hero__spec-item span {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.wd-hero__spec-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.wd-hero__spec-note em {
  font-style: normal;
  color: #fcd34d;
  font-weight: 600;
}

.wd-flow {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.wd-flow__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.wd-flow__head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: #f4f6fa;
  margin: 0 0 0.65rem;
}

.wd-flow__head p {
  margin: 0;
  color: #8b95a5;
  font-size: 0.95rem;
  line-height: 1.55;
}

.wd-flow__shell {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 768px) {
  .wd-flow__shell {
    grid-template-columns: 1fr;
  }
}

.wd-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 768px) {
  .wd-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.wd-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #9aa3b2;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.wd-step:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #c5cbd6;
}

.wd-step.is-active {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.1);
  color: #f4f6fa;
}

.wd-step__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #a5b4fc;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-step.is-active .wd-step__num {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

.wd-step__label {
  flex: 1;
  line-height: 1.35;
}

.wd-panel {
  border-radius: var(--radius);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg);
  overflow: hidden;
}

.wd-stage {
  position: relative;
  min-height: min(52vw, 300px);
  max-height: 340px;
  background:
    linear-gradient(180deg, rgba(14, 16, 22, 0.95) 0%, rgba(6, 7, 8, 0.98) 100%),
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08), transparent 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wd-vis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s;
}

.wd-vis.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wd-vis__caption {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  max-width: 22rem;
}

/* Step 1: brochure vs shop */
.wd-compare {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
}

.wd-compare__card {
  flex: 1;
  min-width: 140px;
  max-width: 175px;
  padding: 1rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-2);
  text-align: center;
}

.wd-compare__card--off {
  opacity: 0.45;
  border-style: dashed;
}

.wd-compare__card--on {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.15);
}

.wd-compare__icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.wd-compare__card h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e5e7eb;
}

.wd-compare__card p {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.45;
  color: #8b95a5;
}

/* Step 2: sitemap */
.wd-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 420px;
}

.wd-map__node {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 0.65rem;
  font-weight: 700;
  color: #e0e7ff;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.wd-map__fan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.wd-vis--2.is-visible .wd-map__node {
  opacity: 1;
  transform: translateY(0);
}

.wd-vis--2.is-visible .wd-map__node--root {
  transition-delay: 0.05s;
}

.wd-vis--2.is-visible .wd-map__fan .wd-map__node:nth-child(1) {
  transition-delay: 0.12s;
}
.wd-vis--2.is-visible .wd-map__fan .wd-map__node:nth-child(2) {
  transition-delay: 0.18s;
}
.wd-vis--2.is-visible .wd-map__fan .wd-map__node:nth-child(3) {
  transition-delay: 0.24s;
}
.wd-vis--2.is-visible .wd-map__fan .wd-map__node:nth-child(4) {
  transition-delay: 0.3s;
}

/* Step 3: design mock */
.wd-browser {
  width: min(100%, 320px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e1016;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.wd-browser__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.65rem;
  background: #161922;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wd-browser__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}

.wd-browser__url {
  flex: 1;
  margin-left: 0.35rem;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.58rem;
  line-height: 18px;
  padding: 0 0.5rem;
  color: #64748b;
}

.wd-browser__body {
  padding: 1rem 1rem 1.15rem;
}

.wd-browser__h {
  height: 12px;
  width: 55%;
  border-radius: 3px;
  background: linear-gradient(90deg, #e8a317, #c2410c);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.wd-browser__p {
  margin-top: 0.55rem;
  height: 6px;
  border-radius: 2px;
  background: #334155;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.wd-browser__p:nth-of-type(2) {
  width: 92%;
  transition-delay: 0.08s;
}
.wd-browser__p:nth-of-type(3) {
  width: 78%;
  transition-delay: 0.14s;
}

.wd-browser__swatches {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.wd-browser__sw {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.wd-browser__sw:nth-child(1) {
  background: #e8a317;
  transition-delay: 0.2s;
}
.wd-browser__sw:nth-child(2) {
  background: #6366f1;
  transition-delay: 0.26s;
}
.wd-browser__sw:nth-child(3) {
  background: #0ea5e9;
  transition-delay: 0.32s;
}
.wd-browser__sw:nth-child(4) {
  background: #f4f4f5;
  transition-delay: 0.38s;
}

.wd-vis--3.is-visible .wd-browser__h {
  opacity: 1;
  transform: scaleX(1);
}

.wd-vis--3.is-visible .wd-browser__p {
  opacity: 1;
}

.wd-vis--3.is-visible .wd-browser__sw {
  opacity: 1;
  transform: scale(1);
}

/* Step 4: process rings */
.wd-process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 400px;
}

.wd-process__chip {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.65rem;
  font-weight: 700;
  color: #c5cbd6;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.4s ease;
}

.wd-vis--4.is-visible .wd-process__chip {
  opacity: 1;
  transform: translateY(0);
}

.wd-vis--4.is-visible .wd-process__chip:nth-child(1) {
  transition-delay: 0.05s;
}
.wd-vis--4.is-visible .wd-process__chip:nth-child(2) {
  transition-delay: 0.12s;
}
.wd-vis--4.is-visible .wd-process__chip:nth-child(3) {
  transition-delay: 0.19s;
}
.wd-vis--4.is-visible .wd-process__chip:nth-child(4) {
  transition-delay: 0.26s;
}

.wd-process__chip--accent {
  border-color: rgba(232, 163, 23, 0.45);
  background: rgba(232, 163, 23, 0.12);
  color: #fcd34d;
}

/* Step 5: days + revisions */
.wd-delivery {
  width: min(100%, 380px);
}

.wd-delivery__days {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.wd-delivery__day {
  width: 64px;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: #8b95a5;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.35s ease,
    transform 0.4s ease;
}

.wd-vis--5.is-visible .wd-delivery__day {
  opacity: 1;
  transform: scale(1);
}

.wd-vis--5.is-visible .wd-delivery__day:nth-child(1) {
  transition-delay: 0.05s;
}
.wd-vis--5.is-visible .wd-delivery__day:nth-child(2) {
  transition-delay: 0.1s;
}
.wd-vis--5.is-visible .wd-delivery__day:nth-child(3) {
  transition-delay: 0.15s;
}
.wd-vis--5.is-visible .wd-delivery__day:nth-child(4) {
  transition-delay: 0.2s;
}

.wd-delivery__revs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.wd-delivery__rev {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px dashed rgba(99, 102, 241, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
  color: #c7d2fe;
}

.wd-delivery__host {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.wd-copy {
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
}

.wd-copy__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #f4f6fa;
  margin: 0 0 0.5rem;
}

.wd-copy__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #9aa3b2;
}

.wd-copy__text + .wd-copy__text {
  margin-top: 0.65rem;
}

.wd-arrows {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem 1.25rem;
}

.wd-arrows button {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #c5cbd6;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.wd-arrows button:hover:not(:disabled) {
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.wd-arrows button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Build week playground */
.wd-play {
  background: var(--color-bg);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.wd-play__head {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.wd-play__head h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #f4f6fa;
  margin: 0 0 0.6rem;
}

.wd-play__head p {
  margin: 0;
  color: #8b95a5;
  font-size: 0.92rem;
  line-height: 1.55;
}

.wd-play__control {
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.wd-play__control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.wd-play__control input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  appearance: none;
}

.wd-play__control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #818cf8;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.45);
}

.wd-play__control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #818cf8;
  border: 2px solid #fff;
  cursor: pointer;
}

.wd-week-viz {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .wd-week-viz {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wd-week-day {
  padding: 0.85rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-2);
  text-align: center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.wd-week-day__n {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.wd-week-day__t {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9aa3b2;
  line-height: 1.3;
}

.wd-week-viz[data-day="1"] .wd-week-day[data-d="1"],
.wd-week-viz[data-day="2"] .wd-week-day[data-d="2"],
.wd-week-viz[data-day="3"] .wd-week-day[data-d="3"],
.wd-week-viz[data-day="4"] .wd-week-day[data-d="4"] {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
}

.wd-week-viz[data-day="1"] .wd-week-day[data-d="1"] .wd-week-day__t,
.wd-week-viz[data-day="2"] .wd-week-day[data-d="2"] .wd-week-day__t,
.wd-week-viz[data-day="3"] .wd-week-day[data-d="3"] .wd-week-day__t,
.wd-week-viz[data-day="4"] .wd-week-day[data-d="4"] .wd-week-day__t {
  color: #e0e7ff;
}

.wd-cta {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(4rem, 10vw, 5rem);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border-subtle);
}

.wd-cta p {
  margin: 0 0 1.25rem;
  color: #9aa3b2;
  font-size: 0.95rem;
  max-width: 34rem;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .wd-vis,
  .wd-map__node,
  .wd-browser__h,
  .wd-browser__p,
  .wd-browser__sw,
  .wd-process__chip,
  .wd-delivery__day {
    transition: none !important;
  }
  .wd-vis.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .wd-vis:not(.is-visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
  }
  .wd-vis--2.is-visible .wd-map__node,
  .wd-vis--3.is-visible .wd-browser__h,
  .wd-vis--3.is-visible .wd-browser__p,
  .wd-vis--3.is-visible .wd-browser__sw,
  .wd-vis--4.is-visible .wd-process__chip,
  .wd-vis--5.is-visible .wd-delivery__day {
    opacity: 1;
    transform: none;
  }
}
