/* Components: the design system's hf-* classes (content/design-system/components/bundle.css)
   plus site additions: active states, links, source chips and the POV card.
   The .is-hover / .is-focus / .is-active classes only exist so the style guide can show states. */

/* Button */
.hf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 20px;
  border: var(--hairline) solid transparent; border-radius: var(--radius-md);
  font: 500 15px/1 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--duration-hover) var(--ease-out),
              box-shadow var(--duration-hover) var(--ease-out),
              transform var(--duration-hover) var(--ease-out);
}
.hf-btn:focus-visible, .hf-btn.is-focus { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.hf-btn:active, .hf-btn.is-active { transform: translateY(var(--press-offset)); box-shadow: none; }
.hf-btn[disabled], .hf-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.hf-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }

.hf-btn--primary { background: var(--brand-500); color: var(--on-brand); }
.hf-btn--primary:hover, .hf-btn--primary.is-hover { background: var(--brand-600); box-shadow: var(--shadow-glow); }
.hf-btn--primary:active, .hf-btn--primary.is-active { background: var(--brand-600); }

.hf-btn--secondary { background: var(--surface-000); color: var(--ink-900); border-color: var(--line-200); }
.hf-btn--secondary:hover, .hf-btn--secondary.is-hover,
.hf-btn--secondary:active, .hf-btn--secondary.is-active { background: var(--surface-200); }

.hf-btn--ghost { background: transparent; color: var(--ink-900); }
.hf-btn--ghost:hover, .hf-btn--ghost.is-hover,
.hf-btn--ghost:active, .hf-btn--ghost.is-active { background: var(--surface-200); }

.hf-btn--volt { background: var(--volt-400); color: var(--on-volt); border-radius: var(--radius-pill); }

.hf-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-sm); }
.hf-btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* Link */
.hf-link {
  color: var(--brand-500); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: var(--hairline);
  text-underline-offset: 3px; text-decoration-color: var(--brand-100);
  border-radius: var(--radius-xs);
  transition: color var(--duration-hover) var(--ease-out), text-decoration-color var(--duration-hover) var(--ease-out);
}
.hf-link:hover, .hf-link.is-hover { color: var(--brand-600); text-decoration-color: currentColor; }
.hf-link:focus-visible, .hf-link.is-focus { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.hf-link:active, .hf-link.is-active { color: var(--brand-600); text-decoration-thickness: var(--focus-width); }
.hf-link[aria-disabled="true"] { color: var(--ink-500); text-decoration-color: var(--line-100); pointer-events: none; opacity: .4; }

/* Badge */
.hf-badge { display: inline-flex; white-space: nowrap; align-items: center; gap: var(--space-1); height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font: 500 12px/1 var(--font-sans); }
.hf-badge--brand { background: var(--brand-100); color: var(--brand-500); }
.hf-badge--volt { background: var(--volt-400); color: var(--on-volt); }
.hf-badge--neutral { background: var(--surface-200); color: var(--ink-600); }
.hf-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Input */
.hf-field { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 360px; }
.hf-field__label { font: 500 14px/1.3 var(--font-sans); color: var(--ink-900); }
.hf-field__help { font: 400 12px/1.4 var(--font-sans); color: var(--ink-500); }
.hf-field--error .hf-field__help { color: var(--danger-600); }
.hf-input {
  height: 44px; padding: 0 var(--space-4);
  background: var(--surface-000); color: var(--ink-900);
  border: var(--hairline) solid var(--line-200); border-radius: var(--radius-sm);
  font: 400 15px/1 var(--font-sans);
  transition: border-color var(--duration-hover) var(--ease-out), background var(--duration-hover) var(--ease-out);
}
.hf-input::placeholder { color: var(--ink-500); }
.hf-input:hover, .hf-input.is-hover { border-color: var(--ink-600); }
.hf-input:focus, .hf-input.is-focus { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); border-color: var(--brand-500); }
.hf-input.is-active { border-color: var(--brand-500); background: var(--surface-000); }
.hf-input:disabled { opacity: .4; background: var(--surface-200); cursor: not-allowed; }
.hf-field--error .hf-input { border-color: var(--danger-600); }

/* Sign-up: email + primary button on one line, stacking on mobile */
.hf-signup { display: flex; gap: var(--space-3); align-items: flex-end; flex-wrap: wrap; }
.hf-signup .hf-field { flex: 1 1 240px; }

/* Card */
.hf-card {
  background: var(--surface-000); border: var(--hairline) solid var(--line-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
  color: inherit; text-decoration: none;
  transition: box-shadow var(--duration-hover) var(--ease-out), border-color var(--duration-hover) var(--ease-out), transform var(--duration-hover) var(--ease-out);
}
a.hf-card:hover, .hf-card.is-hover { box-shadow: var(--shadow-2); border-color: var(--line-200); }
a.hf-card:focus-visible, .hf-card.is-focus { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
a.hf-card:active, .hf-card.is-active { transform: translateY(var(--press-offset)); box-shadow: var(--shadow-1); }
.hf-card[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.hf-card__icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--brand-100); color: var(--brand-500); display: grid; place-items: center; }
.hf-card__icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
.hf-card__title { font: 600 20px/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink-900); }
.hf-card__body { font: 400 15px/1.55 var(--font-sans); color: var(--ink-600); }

/* Source chip: pins a claim to where it came from. Tag = source type, label = what it is. */
.hf-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: var(--chip-height); padding: 0 var(--space-3) 0 var(--space-1);
  background: var(--surface-000); color: var(--ink-600);
  border: var(--hairline) solid var(--line-100); border-radius: var(--radius-pill);
  font: 400 13px/1 var(--font-sans); white-space: nowrap; text-decoration: none;
  transition: border-color var(--duration-hover) var(--ease-out), background var(--duration-hover) var(--ease-out);
}
.hf-chip__tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 var(--space-2);
  border-radius: var(--radius-pill); background: var(--chip-tag-bg); color: var(--chip-tag-ink);
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
a.hf-chip:hover, .hf-chip.is-hover { border-color: var(--brand-500); color: var(--ink-900); }
a.hf-chip:focus-visible, .hf-chip.is-focus { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
a.hf-chip:active, .hf-chip.is-active { background: var(--brand-100); border-color: var(--brand-500); }
.hf-chip--angle { background: var(--volt-400); color: var(--on-volt); border-color: transparent; }
.hf-chip--angle .hf-chip__tag { background: var(--on-volt); color: var(--volt-400); }

/* Account Point of View card (hf-pov): the document the hero builds. Each line carries its chip. */
.hf-pov {
  background: var(--surface-000); border: var(--hairline) solid var(--line-100);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-3);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5);
}
.hf-pov__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-4); padding-bottom: var(--space-4); border-bottom: var(--hairline) solid var(--line-100); }
.hf-pov__line { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.hf-pov__text { font: 400 16px/1.55 var(--font-sans); color: var(--ink-900); }
.hf-pov__line--angle { padding-top: var(--space-4); border-top: var(--hairline) dashed var(--line-100); }
.hf-pov__line--angle .hf-pov__text { font: 600 20px/1.3 var(--font-display); letter-spacing: -0.015em; }

/* Reveal: staggered once-only entrance. Set --i on each item for its place in the order. */
@keyframes hf-reveal {
  from { opacity: 0; transform: translateY(var(--space-2)); }
  to { opacity: 1; transform: none; }
}
.hf-reveal { animation: hf-reveal var(--duration-reveal) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
