/* ─────────────────────────────────────────────────────────────
   varakuta.dev — Main Stylesheet v2
   ───────────────────────────────────────────────────────────── */

/* ══════════ 1. RESET & BASE ══════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ══════════ 2. VARIABLES ══════════ */
:root {
  --bg: #070711;
  --bg-2: #0d0d1e;
  --bg-card: rgba(16, 16, 38, 0.7);
  --purple: #6c63ff;
  --cyan: #00d4ff;
  --purple-dim: rgba(108, 99, 255, 0.1);
  --cyan-dim: rgba(0, 212, 255, 0.08);
  --text: #eeeeff;
  --text-2: #8888aa;
  --text-3: #6a6a88;
  --border: rgba(108, 99, 255, 0.14);
  --border-h: rgba(108, 99, 255, 0.38);
  --grad: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --section-py: 100px;
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s ease;
  --t-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════ 3. TYPOGRAPHY ══════════ */
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 5px 13px;
  background: var(--purple-dim);
  border: 1px solid rgba(108, 99, 255, 0.22);
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--text);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.7;
}

.body-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ══════════ 4. LAYOUT ══════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-py) 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-desc {
  margin: 0 auto;
}

/* ══════════ 5. CURSOR ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8078ff, #33ddff);
  opacity: 0;
  transition: opacity var(--t);
  border-radius: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: var(--purple-dim);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* ══════════ 7. NAVBAR ══════════ */
.brief-section {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.brief-bg-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse,
    rgba(108, 99, 255, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.brief-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Progress */
.brief-progress {
  margin-bottom: 36px;
}
.bp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.bp-label {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
}
.bp-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--purple);
}
.bp-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
.bp-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps */
.brief-steps {
  min-height: 340px;
}
.brief-step {
  display: none;
}
.brief-step.active {
  display: block;
  animation: stepIn 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-num-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
}
.step-subtitle {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 20px;
  line-height: 1.55;
}

/* Recommendation card */
.rec-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.rec-card--info {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan);
}
.rec-card--tip {
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: #a09bff;
}
.rec-card--warn {
  background: rgba(255, 180, 50, 0.07);
  border: 1px solid rgba(255, 180, 50, 0.25);
  color: #ffb832;
}
.rec-card svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.rec-card p {
  color: var(--text-2);
}
.rec-card strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* Option cards */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 9px;
}
.opt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
  position: relative;
}
.opt-card:hover {
  border-color: var(--border);
  background: rgba(108, 99, 255, 0.06);
}
.opt-card.selected {
  border-color: var(--purple);
  background: var(--purple-dim);
  box-shadow: 0 0 0 1px var(--purple);
}
.opt-card.recommended {
  border-color: var(--cyan);
}
.opt-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.opt-card.selected .opt-check {
  background: var(--purple);
  border-color: var(--purple);
}
.opt-check svg {
  opacity: 0;
  transition: opacity var(--t-fast);
}
.opt-card.selected .opt-check svg {
  opacity: 1;
}
.opt-rec-badge {
  position: absolute;
  top: -8px;
  right: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00d4ff, #6c63ff);
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
}
.opt-icon {
  color: var(--purple);
  flex-shrink: 0;
}
.opt-icon svg {
  width: 20px;
  height: 20px;
}
.opt-card.selected .opt-icon {
  color: var(--cyan);
}
.opt-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  padding-right: 20px;
}
.opt-desc {
  font-size: 0.74rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* Checkbox grid */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: 0.835rem;
  color: var(--text-2);
  line-height: 1.35;
}
.check-item:hover {
  border-color: var(--border);
  color: var(--text);
}
.check-item.checked {
  border-color: var(--purple);
  color: var(--text);
  background: var(--purple-dim);
}
.check-box {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.check-item.checked .check-box {
  background: var(--purple);
  border-color: var(--purple);
}
.check-box svg {
  opacity: 0;
  transition: opacity var(--t-fast);
}
.check-item.checked .check-box svg {
  opacity: 1;
}

/* Inputs */
.brief-textarea {
  width: 100%;
  min-height: 150px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text);
  font:
    0.93rem/1.7 "Inter",
    sans-serif;
  resize: vertical;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  outline: none;
}
.brief-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}
.brief-textarea::placeholder {
  color: var(--text-3);
}

.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}
.brief-input,
.brief-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font:
    0.93rem "Inter",
    sans-serif;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}
.brief-input:focus,
.brief-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}
.brief-input::placeholder {
  color: var(--text-3);
}
.brief-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2344445a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.brief-select option {
  background: #0d0d1e;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Brief nav */
.brief-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* Success */
.brief-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.18),
    rgba(0, 212, 255, 0.18)
  );
  border: 2px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--cyan);
  animation: successPop 0.6s var(--t-spring);
}
@keyframes successPop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.brief-success h3 {
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 14px;
}
.brief-success p {
  color: var(--text-2);
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ══════════ 13. TOAST NOTIFICATIONS ══════════ */
.vk-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(10, 10, 24, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 10px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(108, 99, 255, 0.06);
  max-width: 360px;
  width: calc(100vw - 56px);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vk-toast.show {
  transform: translateX(0);
}
.vk-toast--error {
  border-color: rgba(255, 80, 80, 0.3);
}
.vk-toast--warn {
  border-color: rgba(255, 180, 50, 0.3);
}
.vk-toast--info {
  border-color: rgba(0, 212, 255, 0.3);
}
.vk-toast--success {
  border-color: rgba(0, 200, 120, 0.3);
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vk-toast--error .toast-icon {
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
}
.vk-toast--warn .toast-icon {
  background: rgba(255, 180, 50, 0.12);
  color: #ffb832;
}
.vk-toast--info .toast-icon {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
}
.vk-toast--success .toast-icon {
  background: rgba(0, 200, 120, 0.12);
  color: #00c878;
}

.toast-body {
  flex: 1;
  padding-top: 2px;
}
.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.toast-msg {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}
.toast-close {
  flex-shrink: 0;
  color: var(--text-3);
  padding: 2px;
  border-radius: 4px;
  transition: color var(--t-fast);
  margin-top: -2px;
  line-height: 1;
}
.toast-close:hover {
  color: var(--text);
}

/* ══════════ 14. FOOTER ══════════ */
.brief-live-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  animation: summaryIn 0.3s ease;
  overflow: hidden;
}
@keyframes summaryIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bls-label {
  font-size: 0.67rem;
  color: var(--text-3);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}
.bls-phrase {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
}
.bls-phrase b {
  color: var(--text);
  font-weight: 600;
}

/* ══════════ BUDGET INSIGHT ══════════ */
.budget-insight-card {
  margin-top: 14px;
  animation: insightIn 0.3s ease;
}
@keyframes insightIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bi-tip {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--border);
  border-radius: 0 4px 4px 0;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ══════════ ESTIMATE BLOCK ══════════ */
.estimate-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.08),
    rgba(0, 212, 255, 0.05)
  );
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-sm);
  animation: insightIn 0.3s ease;
}
.est-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.15);
  border-radius: 8px;
  color: var(--purple);
}
.est-content {
  flex: 1;
}
.est-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.est-values {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.est-val {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.est-num {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.est-lbl {
  font-size: 0.68rem;
  color: var(--text-3);
}
.est-sep {
  color: var(--text-3);
  font-size: 0.9rem;
  align-self: center;
}
.est-disclaimer {
  font-size: 0.75rem;
  color: var(--text-3);
  margin: 0;
  line-height: 1.5;
}

/* ══════════ PLATFORM COMPARE ══════════ */
.platform-compare {
  margin-top: 18px;
}
.pc-title {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 10px;
}
.pc-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.78rem;
}
.pc-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.pc-row:last-child {
  border-bottom: none;
}
.pc-head {
  background: rgba(255, 255, 255, 0.02);
}
.pc-cell {
  padding: 10px 12px;
  display: flex;
  align-items: center;
}
.pc-crit {
  color: var(--text-3);
  font-size: 0.72rem;
}
.pc-col-head {
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  color: var(--text-2);
}
.pc-col-head small {
  font-size: 0.65rem;
  color: var(--text-3);
  font-weight: 400;
}
.pc-budget-row {
  background: rgba(108, 99, 255, 0.03);
}

/* Dot rating */
.pc-dots {
  display: flex;
  gap: 3px;
}
.pd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.pd.on {
  background: var(--purple);
}

.fit-yes {
  color: #28c840;
  font-weight: 600;
  font-size: 0.72rem;
}
.fit-no {
  color: var(--text-3);
  font-size: 0.72rem;
}

@media (max-width: 600px) {
  .pc-row {
    grid-template-columns: 90px 1fr 1fr 1fr;
  }
  .pc-cell {
    padding: 8px 6px;
    font-size: 0.7rem;
  }
  .pc-col-head small {
    display: none;
  }
}

/* ══════════ FEATURE CONFLICT ══════════ */
.feature-conflict {
  margin-top: 14px;
  animation: insightIn 0.3s ease;
}

/* ══════════ REFS SECTION ══════════ */
.refs-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.refs-hint {
  font-size: 0.8rem;
  color: var(--text-3);
  margin: 4px 0 12px;
}
.field-opt {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 400;
}
.ref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ref-row .brief-input {
  flex: 1;
}
.ref-remove-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t-fast);
}
.ref-remove-btn:hover {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff6060;
}
.ref-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple);
  background: none;
  border: 1px dashed rgba(108, 99, 255, 0.3);
  border-radius: 7px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--t-fast);
  margin-top: 4px;
}
.ref-add-btn:hover {
  background: rgba(108, 99, 255, 0.08);
  border-color: var(--purple);
}

/* ══════════ CONTACT VALIDATION ══════════ */
.cf-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-error {
  border-color: rgba(255, 80, 80, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.1);
}
.field-error {
  font-size: 0.74rem;
  color: #ff6868;
  display: none;
  animation: errIn 0.2s ease;
}
.field-error.visible {
  display: block;
}
@keyframes errIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ══════════ CUSTOM SELECT ══════════ */
.custom-select-wrap {
  position: relative;
}
.custom-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-2);
  font:
    0.93rem "Inter",
    sans-serif;
  cursor: pointer;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  text-align: left;
}
.custom-select-btn:hover,
.custom-select-btn[aria-expanded="true"] {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  color: var(--text);
}
.cs-arrow {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--t-fast);
}
.custom-select-btn[aria-expanded="true"] .cs-arrow {
  transform: rotate(180deg);
}

.custom-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  background: #16162a;
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin: 0;
  list-style: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: csIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-select-list.open {
  display: block;
}
@keyframes csIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.custom-select-list li {
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-2);
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.custom-select-list li:hover {
  background: rgba(108, 99, 255, 0.1);
  color: var(--text);
}
.custom-select-list li.active {
  background: rgba(108, 99, 255, 0.15);
  color: var(--text);
  font-weight: 500;
}

/* ══════════ BRIEF — MOBILE ══════════ */
@media (max-width: 640px) {
  /* Brief card: full-width, smaller padding */
  .brief-card {
    padding: 24px 18px;
    border-radius: var(--radius);
  }
  .brief-progress {
    margin-bottom: 22px;
  }

  /* Step header */
  .step-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  .step-subtitle {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }

  /* Option cards: always 2 columns, tighter */
  .opt-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .opt-card {
    padding: 11px 12px;
    gap: 4px;
    border-radius: 10px;
  }
  .opt-icon svg {
    width: 18px;
    height: 18px;
  }
  .opt-label {
    font-size: 0.78rem;
    padding-right: 16px;
  }
  .opt-desc {
    font-size: 0.7rem;
  }
  .opt-check {
    width: 16px;
    height: 16px;
    top: 8px;
    right: 8px;
  }
  .opt-rec-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    right: 8px;
  }

  /* Checkbox grid: exactly 2 columns */
  .check-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .check-item {
    padding: 9px 10px;
    font-size: 0.78rem;
    gap: 7px;
    border-radius: 8px;
  }
  .check-box {
    width: 14px;
    height: 14px;
  }

  /* Rec card */
  .rec-card {
    padding: 10px 12px;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  /* Platform compare table */
  .platform-compare {
    overflow-x: auto;
  }
  .pc-title {
    font-size: 0.78rem;
  }
  .pc-cell {
    font-size: 0.7rem;
    padding: 6px 5px;
  }
  .pc-col-head small {
    font-size: 0.6rem;
  }

  /* Estimate block */
  .estimate-block {
    padding: 12px 14px;
    gap: 10px;
  }
  .est-num {
    font-size: 1.1rem;
  }

  /* Nav buttons */
  .brief-nav {
    padding: 12px 18px;
  }
  .btn-back {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
  .btn-next {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  /* Live summary */
  .brief-live-summary {
    padding: 8px 12px;
    gap: 6px;
  }
  .bls-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
  }

  /* Textarea */
  .brief-textarea {
    font-size: 0.85rem;
    padding: 12px 14px;
    min-height: 120px;
  }

  /* Contact fields */
  .field-row {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .brief-card {
    padding: 18px 14px;
  }
  .opt-grid {
    gap: 6px;
  }
  .opt-card {
    padding: 10px 10px;
  }
  .opt-label {
    font-size: 0.73rem;
  }
  .check-grid {
    gap: 5px;
  }
  .check-item {
    font-size: 0.73rem;
    padding: 8px 9px;
  }
}

/* ══════════ SCROLL TO TOP ══════════ */
