/* ============================================================
   Arthur Torres — shared components
   ============================================================ */

/* ---------- logo bar (auto-scroll ticker) ---------- */
.logobar { padding: 44px 0 12px; border-top: 1px solid var(--border-2); }
.logobar__label { text-align: center; margin-bottom: 30px; }
.logobar__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logobar__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: logobar-scroll 48s linear infinite;
}
.logobar__viewport:hover .logobar__track { animation-play-state: paused; }
.logobar__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(28px, 4vw, 52px);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.35s var(--ease), color 0.35s var(--ease);
}
.logobar__item:hover { opacity: 1; color: var(--amber-bright); }
@keyframes logobar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logobar__track { animation: none; flex-wrap: nowrap; overflow-x: auto; }
}

/* ---------- problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.problem-card { padding: 38px 34px; position: relative; border-left: 2px solid var(--amber-line); }
.problem-card .h-card { margin-bottom: 16px; }
.problem-card p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.problem-card__num { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: 0.16em; margin-bottom: 22px; display: block; }

/* ---------- methodology / stages ---------- */
.stages { margin-top: 60px; display: flex; flex-direction: column; gap: 0; position: relative; }
.stage {
  display: grid; grid-template-columns: 130px 1fr; gap: clamp(24px, 5vw, 70px);
  padding: 44px 0; border-top: 1px solid var(--border-2); position: relative;
}
.stage:last-child { border-bottom: 1px solid var(--border-2); }
.stage__num {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem);
  color: transparent; -webkit-text-stroke: 1px var(--amber-line); line-height: 0.9;
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.stage:hover .stage__num { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.stage__body { max-width: 62ch; }
.stage__title { font-size: 1.8rem; margin-bottom: 6px; }
.stage__sub { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--amber); margin-bottom: 18px; }
.stage__text { color: var(--text-2); font-size: 1.05rem; }

@media (max-width: 700px) {
  .stage { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .stage__num { font-size: 2.6rem; }
}

/* ---------- engagement tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; align-items: stretch; }
.tier { padding: 36px 32px 34px; display: flex; flex-direction: column; position: relative; }
.tier--featured { border-color: var(--amber-line); background: linear-gradient(180deg, rgba(201,168,76,0.05), var(--surface) 32%); }
.tier__badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px; align-self: flex-start; margin-bottom: 22px; font-weight: 500;
  border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.tier--featured .tier__badge { background: var(--amber); color: #141008; border-color: var(--amber); }
.tier__name { font-size: 1.65rem; margin-bottom: 16px; }
.tier__desc { color: var(--muted); font-size: 15.5px; line-height: 1.62; margin-bottom: 28px; flex: 1; }
.tier__meta { border-top: 1px solid var(--border-2); padding-top: 20px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.tier__row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tier__row .k { font-family: var(--mono); color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; }
.tier__row .v { color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; }
.tier__row .v strong { color: var(--text); font-weight: 600; }
.tier__price { font-family: var(--display); font-size: 1.5rem; color: var(--text); font-weight: 600; }
.tier__price small { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0.03em; }

@media (max-width: 900px) {
  .problem-grid, .tiers { grid-template-columns: 1fr; }
}

/* ---------- case-study cards ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
.case-card { padding: 40px 38px 34px; display: flex; flex-direction: column; cursor: pointer; }
.case-card__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); padding: 5px 11px; border-radius: 100px; align-self: flex-start; white-space: nowrap;
}
.case-card__stat {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--amber); line-height: 1.08; margin: 26px 0 4px; letter-spacing: -0.01em;
}
.case-card__client { font-size: 14px; font-family: var(--mono); letter-spacing: 0.04em; color: var(--text); margin-bottom: 18px; text-transform: uppercase; }
.case-card__context { color: var(--muted); font-size: 15.5px; line-height: 1.62; margin-bottom: 28px; flex: 1; }
.case-card__link { font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s var(--ease), gap 0.3s var(--ease); }
.case-card:hover .case-card__link { color: var(--amber-bright); gap: 12px; }

@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
.testi {
  padding: 44px 40px 38px; position: relative; overflow: hidden;
}
.testi__mark {
  position: absolute; top: -34px; right: 6px; font-family: var(--display); font-weight: 800;
  font-size: 13rem; line-height: 1; color: var(--amber); opacity: 0.07; pointer-events: none; user-select: none;
}
.testi__quote { font-size: 1.06rem; line-height: 1.66; color: var(--text-2); position: relative; z-index: 1; }
.testi__foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-2); display: flex; align-items: center; gap: 14px; }
.testi__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface-hi);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--amber);
  border: 1px solid var(--border); flex: 0 0 auto;
}
.testi__name { font-weight: 600; font-size: 15px; color: var(--text); }
.testi__title { font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }
.testi--soon { background: var(--surface-2); border-style: dashed; }
.testi--soon .testi__placeholder { color: var(--muted-2); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; min-height: 90px; display: flex; align-items: center; }

@media (max-width: 760px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
[data-field] { display: flex; flex-direction: column; gap: 9px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }
.field-label .req { color: var(--amber); }
.input, .textarea, .select {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px;
  color: var(--text); font-family: var(--body); font-size: 15.5px; padding: 14px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  width: 100%;
}
.textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--amber); background: var(--bg-deep);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8A86' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
[data-field].has-error .input, [data-field].has-error .textarea, [data-field].has-error .select { border-color: #c0564b; box-shadow: 0 0 0 3px rgba(192,86,75,0.12); }
.field-error { font-size: 12.5px; color: #d6796f; font-family: var(--mono); display: none; }
[data-field].has-error .field-error { display: block; }

/* radio group */
.radio-group { display: flex; flex-direction: column; gap: 12px; }
.radio {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer; background: var(--surface-2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.radio:hover { border-color: var(--border); background: var(--surface); }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted-2); flex: 0 0 auto; margin-top: 3px; position: relative; transition: border-color 0.2s var(--ease); }
.radio__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); transform: scale(0); transition: transform 0.2s var(--ease); }
.radio input:checked ~ .radio__dot { border-color: var(--amber); }
.radio input:checked ~ .radio__dot::after { transform: scale(1); }
.radio:has(input:checked) { border-color: var(--amber-line); background: rgba(201,168,76,0.05); }
.radio__text { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
[data-field].has-error .radio-group .radio { border-color: rgba(192,86,75,0.5); }

.form-foot { font-size: 13.5px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }

/* success state */
[data-success] { text-align: left; padding: 8px 0; }
[data-success] .success-mark {
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--amber);
  display: grid; place-items: center; color: var(--amber); margin-bottom: 24px;
}
[data-success] .success-mark svg { width: 24px; height: 24px; }
[data-success] h3 { font-size: 1.9rem; margin-bottom: 14px; }
[data-success] p { color: var(--muted); max-width: 48ch; }

/* ---------- fit tool ---------- */
.fit-shell { margin-top: 48px; max-width: 860px; }
.fit-form { position: relative; }
.fit-input {
  width: 100%; min-height: 190px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  padding: 24px 26px; resize: vertical; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.fit-input::placeholder { color: var(--muted-2); }
.fit-input:focus { outline: none; border-color: var(--amber); background: var(--bg-deep); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
[data-field].has-error .fit-input { border-color: #c0564b; box-shadow: 0 0 0 3px rgba(192,86,75,0.12); }
.fit-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.fit-actions .hint { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.03em; }

.fit-loading { display: flex; align-items: center; gap: 16px; margin-top: 30px; color: var(--muted); font-family: var(--mono); font-size: 14px; letter-spacing: 0.03em; }
.fit-spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--amber); border-radius: 50%; animation: fit-spin 0.8s linear infinite; flex: 0 0 auto; }
@keyframes fit-spin { to { transform: rotate(360deg); } }

.fit-result { margin-top: 36px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fit-result.is-in { opacity: 1; transform: none; }
.fit-verdict { padding: 30px 36px; border-bottom: 1px solid var(--border-2); }
.fit-verdict--fit { background: linear-gradient(180deg, rgba(201,168,76,0.1), transparent); }
.fit-verdict--partial { background: linear-gradient(180deg, rgba(201,168,76,0.045), transparent); }
.fit-verdict--not { background: linear-gradient(180deg, rgba(120,120,120,0.06), transparent); }
.fit-badge { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; font-weight: 600; padding: 7px 14px; border-radius: 100px; display: inline-block; margin-bottom: 18px; }
.fit-verdict--fit .fit-badge { background: var(--amber); color: #141008; }
.fit-verdict--partial .fit-badge { background: var(--amber-dim); color: var(--amber-bright); border: 1px solid var(--amber-line); }
.fit-verdict--not .fit-badge { background: var(--surface-hi); color: var(--muted); border: 1px solid var(--border); }
.fit-headline { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.fit-body { padding: 30px 36px 36px; }
.fit-body p { color: var(--text-2); font-size: 16px; line-height: 1.68; margin-bottom: 18px; }
.fit-body p:last-of-type { margin-bottom: 0; }
.fit-signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fit-chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--muted); border: 1px solid var(--border); border-radius: 100px; padding: 5px 12px; }
.fit-cta { margin-top: 28px; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .fit-actions .btn { width: 100%; justify-content: center; } }
