/* ============================================================
   HEROBOTS · Component styles
   Classes consumed by the React primitives in components/.
   Hover = lift to lighter surface / reveal orange edge (no hue
   shift). Press = scale 0.98. Focus = 2px orange ring.
   ============================================================ */

/* ---------- Button (pill — Apple-inspired) ---------- */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 22px;
  font-family: var(--font-sans); font-size: 15px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight); line-height: 1; white-space: nowrap;
  border: var(--border-hairline) solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; user-select: none; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard), opacity var(--dur-fast);
}
.hb-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hb-btn:active { transform: scale(0.98); }
.hb-btn[disabled], .hb-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

.hb-btn--sm { height: 34px; padding: 0 16px; font-size: 13px; }
.hb-btn--lg { height: 54px; padding: 0 30px; font-size: 17px; }

.hb-btn--primary   { background: var(--hb-orange); color: #fff; }
.hb-btn--primary:hover { background: #ff6322; box-shadow: var(--glow-orange); }

.hb-btn--secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.hb-btn--secondary:hover { background: var(--surface-hover); border-color: var(--text-primary); }

.hb-btn--ghost     { background: transparent; color: var(--text-primary); }
.hb-btn--ghost:hover { background: var(--surface-hover); }

.hb-btn--accent-outline { background: transparent; color: var(--hb-orange); border-color: var(--hb-orange); }
.hb-btn--accent-outline:hover { background: rgba(255,77,0,0.10); }

.hb-btn__icon { display: inline-flex; width: 18px; height: 18px; }
.hb-btn__icon svg { width: 100%; height: 100%; }

/* ---------- Tag / category label ---------- */
.hb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px;
  font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.04em;
  border-radius: var(--radius-pill); white-space: nowrap;
}
.hb-tag--accent  { background: rgba(255,77,0,0.14); color: var(--hb-orange); box-shadow: inset 0 0 0 1px rgba(255,77,0,0.35); }
.hb-tag--solid   { background: var(--hb-orange); color: #fff; }
.hb-tag--neutral { background: var(--surface-hover); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.hb-tag__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Card / panel ---------- */
.hb-card {
  background: var(--surface-card);
  border: var(--border-hairline) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.hb-card--interactive { cursor: pointer; }
.hb-card--interactive:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hb-card--accent { border-color: rgba(255,77,0,0.5); }

/* ---------- Input ---------- */
.hb-field { display: flex; flex-direction: column; gap: 8px; }
.hb-field__label { font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.04em; color: var(--text-tertiary); text-transform: uppercase; }
.hb-input {
  height: 46px; padding: 0 var(--space-4);
  font-family: var(--font-sans); font-size: 15px; color: var(--text-primary);
  background: var(--bg-raised); border: var(--border-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md); outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base);
}
.hb-input::placeholder { color: var(--text-tertiary); }
.hb-input:hover { border-color: var(--border-strong); }
.hb-input:focus { border-color: var(--hb-orange); box-shadow: 0 0 0 3px rgba(255,77,0,0.20); }

/* ---------- Spec row (datasheet field) ---------- */
.hb-spec { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; border-bottom: var(--border-hairline) solid var(--border-subtle); }
.hb-spec__label { font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); }
.hb-spec__value { font-size: 20px; font-weight: var(--fw-medium); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.hb-spec__unit { font-size: 13px; color: var(--text-secondary); margin-left: 4px; }

/* ---------- Section label (numeral anchor + kicker) ---------- */
.hb-section { display: flex; flex-direction: column; gap: var(--space-2); }
.hb-section__num { font-size: var(--fs-mega); font-weight: var(--fw-semibold); line-height: 1; letter-spacing: var(--ls-display); color: var(--text-primary); }
.hb-section__num--accent { color: var(--hb-orange); }
.hb-section__list { display: flex; flex-direction: column; gap: 2px; }
.hb-section__item { font-size: 20px; color: var(--text-secondary); }

/* ---------- Callout (leader-line annotation) ---------- */
.hb-callout { max-width: 260px; }
.hb-callout__bar { height: 1px; background: var(--border-strong); margin-bottom: var(--space-3); }
.hb-callout__title { font-size: 16px; font-weight: var(--fw-bold); color: var(--text-primary); margin: 0 0 var(--space-2); }
.hb-callout__body { font-size: 15px; line-height: var(--lh-normal); color: var(--text-secondary); margin: 0; }
.hb-callout--accent .hb-callout__bar { background: var(--hb-orange); }
.hb-callout--accent .hb-callout__title { color: var(--hb-orange); }

/* ============================================================
   Apple-inspired marketing patterns
   ============================================================ */

/* ---------- Section header (centered orange kicker + big headline + body) ---------- */
.hb-secthead { text-align: center; max-width: 820px; margin: 0 auto; }
.hb-secthead__kicker { font-size: 19px; font-weight: var(--fw-semibold); color: var(--hb-orange); margin: 0 0 12px; letter-spacing: -0.01em; }
.hb-secthead__title { font-size: clamp(34px, 5vw, 56px); font-weight: var(--fw-bold); letter-spacing: -0.03em; line-height: 1.05; color: var(--text-primary); margin: 0; }
.hb-secthead__body { font-size: clamp(17px, 1.5vw, 21px); font-weight: var(--fw-medium); line-height: 1.5; color: var(--hb-gray-500); margin: 22px auto 0; max-width: 680px; }
.hb-secthead__body b, .hb-secthead__body strong { color: var(--text-primary); font-weight: var(--fw-medium); }

/* ---------- Compare pill (floating dark glass pill + trailing icon circle) ---------- */
.hb-compare {
  display: inline-flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 8px 0 22px; border: 0; border-radius: var(--radius-pill);
  background: rgba(42,42,44,0.66); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #fff; font-family: var(--font-sans); font-size: 16px; font-weight: var(--fw-medium);
  cursor: pointer; transition: background var(--dur-base) var(--ease-standard);
}
.hb-compare:hover { background: rgba(64,64,66,0.8); }
.hb-compare__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--hb-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hb-compare__icon svg { width: 16px; height: 16px; }

/* ---------- Feature pill (expandable +-toggle, Apple "Guardalo da vicino") ---------- */
.hb-fpill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px 0 14px; border: 0; border-radius: var(--radius-pill);
  background: var(--hb-ink-800); color: #fff; font-family: var(--font-sans);
  font-size: 17px; font-weight: var(--fw-semibold); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard);
}
.hb-fpill:hover { background: var(--hb-ink-700); }
.hb-fpill__mark { width: 25px; height: 25px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--hb-gray-500); color: var(--hb-gray-300); font-size: 17px; line-height: 0; }
.hb-fpill--active .hb-fpill__mark { border: 0; background: var(--hb-orange); color: transparent; }
.hb-fpill--active .hb-fpill__mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }

/* ---------- Stat card (Apple comparison / spec grid) ---------- */
.hb-stat {
  background: var(--hb-ink-850); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 30px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 220px;
}
.hb-stat__label { font-size: 15px; font-weight: var(--fw-semibold); color: var(--hb-gray-400); line-height: 1.3; }
.hb-stat__value { font-size: 44px; font-weight: var(--fw-bold); letter-spacing: -0.025em; color: var(--text-primary); line-height: 1.0; }
.hb-stat__value--accent { color: var(--hb-orange); }
.hb-stat__sub { font-size: 14px; color: var(--hb-gray-500); line-height: 1.4; }

/* ---------- Product subnav (sticky rounded glass bar) ---------- */
.hb-subnav {
  display: flex; align-items: center; gap: 16px;
  padding: 9px 9px 9px 22px; border-radius: 18px;
  background: rgba(20,20,20,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
}
.hb-subnav__name { font-size: 19px; font-weight: var(--fw-semibold); color: var(--text-primary); letter-spacing: -0.01em; }
.hb-subnav__spacer { flex: 1; }
