/* ============================================================
   RankFactory — Website Design Page Styles
   ============================================================ */

/* ─── HERO ─── */
.wd-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #F0F6FF 0%, #FAFCFF 40%, #EEF4FF 100%);
  overflow: hidden; padding-top: 100px; padding-bottom: 80px;
}

.wd-hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}

.wd-hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin: 20px 0 24px;
  line-height: 1.1;
}

.wd-hero-sub {
  font-size: 1.1rem; color: var(--text-mute);
  line-height: 1.75; margin-bottom: 28px;
  max-width: 580px;
}

.wd-hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}

.wd-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
}

/* ── Hero ── */
.wd-hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef4ff 0%, #f7faff 50%, #e8f3ff 100%);
}

.wd-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wd-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.wd-hero-orb--1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(31,86,197,0.18) 0%, transparent 70%);
}
.wd-hero-orb--2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(15,183,216,0.15) 0%, transparent 70%);
}

.wd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,86,197,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,86,197,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.wd-hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
}

.wd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(31,86,197,0.15);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(31,86,197,0.08);
}

.wd-hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

.wd-hero-content h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--text-dark);
  margin: 0 0 20px;
}

.wd-hero-content h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wd-hero-content p {
  font-size: 1.05rem;
  line-height: 1.72;
  color: #5d6e87;
  max-width: 500px;
  margin: 0 0 24px;
}

.wd-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.wd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Visual card */
.wd-hero-visual {
  position: relative;
}

.wd-hero-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(31,86,197,0.12);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(18,38,74,0.12),
    0 8px 24px rgba(18,38,74,0.06);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.wd-hero-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f4f8fd;
  border-bottom: 1px solid #e6eef8;
}

.wd-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wd-dot--r { background: #ff5f57; }
.wd-dot--y { background: #febc2e; }
.wd-dot--g { background: #28c840; }

.wd-hero-card-url {
  margin-left: 8px;
  font-size: 0.72rem;
  color: #8a9ab8;
  font-weight: 500;
}

.wd-hero-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-hero-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f6ff, #eaf3ff);
  border: 1px solid #dde8f7;
}

.wd-rank-dim {
  background: #fafbfd;
  border-color: #edf2f9;
  opacity: 0.65;
}

.wd-rank-badge {
  flex-shrink: 0;
  background: var(--grad);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.wd-rank-num {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e8eef7;
  color: #8a9ab8;
  font-size: 0.66rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-rank-text { flex: 1; min-width: 0; }
.wd-rank-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e3a5f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-rank-url {
  font-size: 0.64rem;
  color: #3b82c4;
  margin-top: 1px;
}

.wd-rank-up {
  flex-shrink: 0;
  color: #22c55e;
  font-size: 0.72rem;
  font-weight: 700;
}

.wd-hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 16px;
  border-top: 1px solid #e6eef8;
  background: #f8fbff;
}

.wd-hero-stat { text-align: center; }
.wd-hero-stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
}
.wd-hero-stat-label {
  display: block;
  font-size: 0.65rem;
  color: #8a9ab8;
  margin-top: 2px;
  white-space: nowrap;
}
.wd-hero-stat-divider {
  width: 1px;
  height: 28px;
  background: #dde8f7;
}

/* Floating tags */
.wd-hero-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dde8f7;
  box-shadow: 0 8px 24px rgba(18,38,74,0.1);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.wd-hero-float--1 {
  top: -18px;
  right: 20px;
}
.wd-hero-float--2 {
  bottom: -18px;
  left: 20px;
}

/* Responsive */
@media (max-width: 960px) {
  .wd-hero-inner {
    grid-template-columns: 1fr;
  }
  .wd-hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .wd-hero {
    padding: 110px 0 80px;
  }
  .wd-hero-content h1 {
    font-size: 2.4rem;
  }
  .wd-hero-actions {
    flex-direction: column;
  }
  .wd-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .wd-hero-float {
    display: none;
  }
}

@media (max-width: 960px) {
  .wd-hero-visual {
    display: none;
  }
}


/* ─── WHY SECTION ─── */
.wd-why { padding: 100px 0; background: var(--off-white); }

.wd-why-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 32px; align-items: center; max-width: 900px; margin: 0 auto;
}

.wd-why-card {
  border-radius: var(--radius-xl); padding: 32px;
}

.wd-why-bad {
  background: white; border: 1.5px solid #FECACA;
}

.wd-why-good {
  background: linear-gradient(135deg, #F0F6FF, #EEF4FF);
  border: 1.5px solid rgba(29,111,232,0.2);
}

.wd-why-label {
  font-size: 0.85rem; font-weight: 700; margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.wd-why-card ul {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}

.wd-why-card ul li {
  font-size: 0.9rem; color: var(--text-mid);
  padding-left: 0;
}

.wd-why-bad li { color: #6B7280; }
.wd-why-bad li::before { content: ''; }

.wd-why-vs {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--blue-main); background: rgba(29,111,232,0.08);
  border: 1.5px solid rgba(29,111,232,0.2);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.section-title {
  line-height: 1.1;
  overflow: visible;
  padding-bottom: 8px;
}

.wd-features,
.wd-pricing,
.wd-process,
.wd-why {
  overflow: visible;
}

.wd-features .container,
.wd-pricing .container,
.wd-process .container,
.wd-why .container {
  overflow: visible;
}

/* ─── PROCESS ─── */
.wd-process {
  padding: 100px 0;
  background: #fff;
}

.wd-steps {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.wd-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 30px 0;
  border-top: 1px solid #e8eef7;
}

.wd-step-num {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 64px;
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.wd-step-body {
  min-width: 0;
}

.wd-step-body h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e2a44;
}

.wd-step-body p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.8;
  color: #74829d;
  max-width: 650px;
}

.wd-step-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .wd-step {
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    padding: 24px 0;
  }

  .wd-step-num {
    font-size: 2.2rem;
    line-height: 1;
    padding-right: 4px;
  }
}

/* ─── INCLUDED ─── */
.wd-included { padding: 100px 0; background: var(--off-white); }

.wd-included-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wd-inc-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wd-inc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.wd-inc-icon { font-size: 2rem; margin-bottom: 14px; }
.wd-inc-card h3 { font-size: 1rem; margin-bottom: 8px; }
.wd-inc-card p { font-size: 0.85rem; }

/* ─── PRICING ─── */
.wd-pricing-section { padding: 100px 0; background: white; }

.wd-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1000px; margin: 0 auto;
}

.wd-pricing-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wd-pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.wd-pricing-featured {
  border-color: #0f447e;
  background: linear-gradient(rgb(195, 231, 246), white) padding-box,
              var(--gradient) border-box;
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}
.wd-pricing-featured:hover { transform: scale(1.03) translateY(-6px); }

.wd-pricing-badge {
  font-size: 0.82rem; font-weight: 700; color: var(--blue-main);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px; margin-top: 8px;
}

.wd-pricing-price {
  display: flex; align-items: baseline; gap: 2px; margin-bottom: 6px;
}
.wd-pricing-price .price-currency {
  font-size: 1.4rem; font-weight: 800; color: var(--text-dark);
}
.wd-pricing-price .price-amount {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem; font-weight: 800;
  color: var(--text-dark); line-height: 1;
}

.wd-pricing-note {
  font-size: 0.8rem; color: var(--text-mute); margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}

.wd-pricing-featured .wd-pricing-price .price-currency,
.wd-pricing-featured .wd-pricing-price .price-amount {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

.faq-section .section-title {
  max-width: 100%;
  white-space: nowrap;
}

.faq-section .section-desc {
  max-width: 100%;
}

.wd-pricing-grid {
  padding: 20px 4px;
  overflow: visible;
}

.wd-pricing {
  overflow: visible;
}

.wd-pricing-card {
  overflow: visible;
}

.wd-pricing-grid {
  padding-top: 24px;
  overflow: visible;
}

.wd-pricing {
  overflow: visible;
}



/* ─── ONBOARDING FORM ─── */
.onboarding-section { padding: 100px 0; background: var(--off-white); }

.onboarding-wrap {
  max-width: 760px; margin: 0 auto;
}

.onboarding-form {
  background: white; border-radius: var(--radius-xl);
  padding: 48px; border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  color: var(--text-dark); background: var(--off-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(29,111,232,0.1);
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-mute); opacity: 0.7;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group-checkbox { margin-top: 8px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid var(--border); border-radius: 4px;
  cursor: pointer; background: var(--off-white);
  accent-color: var(--blue-main);
}
.checkbox-label span { font-size: 0.85rem; color: var(--text-mute); line-height: 1.5; }

.form-submit { margin-top: 24px; }
.form-submit .btn { width: 100%; justify-content: center; }

/* Success / Error */
.form-success, .form-error { display: none; }
.form-success.visible, .form-error.visible { display: block; margin-top: 20px; }

.form-success {
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md); padding: 24px; text-align: center;
}
.form-success-icon { font-size: 2rem; margin-bottom: 8px; }
.form-success h3 { font-size: 1.05rem; margin-bottom: 8px; color: #16A34A; }
.form-success p { font-size: 0.88rem; }
.form-success a { color: var(--blue-main); font-weight: 600; }

.form-error {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md); padding: 16px;
}
.form-error p { color: #DC2626; font-size: 0.88rem; margin: 0; }

/* Invalid field highlight */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .wd-why-grid { grid-template-columns: 1fr; }
  .wd-why-vs { margin: 0 auto; }
  .wd-included-grid { grid-template-columns: repeat(2, 1fr); }
  .wd-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .wd-pricing-featured { transform: scale(1); }
  .wd-pricing-featured:hover { transform: translateY(-6px); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wd-hero { padding-top: 90px; padding-bottom: 60px; }
  .wd-hero-content h1 { font-size: 2.4rem; }
  .wd-hero-actions { flex-direction: column; }
  .wd-hero-actions .btn { width: 100%; justify-content: center; }
  .wd-included-grid { grid-template-columns: 1fr; }
  .onboarding-form { padding: 28px 20px; }
}

