/* Pixels for Bricks homepage hero
   Component selectors and custom properties are isolated with the pfb-hero prefix. */

@font-face {
  font-family: "PFB Tektur";
  src: url("../assets/fonts/Tektur-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "PFB Tektur";
  src: url("../assets/fonts/Tektur-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PFB Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PFB Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.pfb-hero {
  --pfb-hero-deep-night: #111827;
  --pfb-hero-pixel-purple: #7c3aed;
  --pfb-hero-electric-blue: #2563eb;
  --pfb-hero-mint-pixel: #34d399;
  --pfb-hero-brick-orange: #e76f51;
  --pfb-hero-soft-sand: #f5f1e8;
  --pfb-hero-pixel-white: #fafafa;
  --pfb-hero-border: #e5e7eb;
  --pfb-hero-secondary: #4b5563;
  --pfb-hero-muted: #6b7280;
  --pfb-hero-inline-padding: 14px;
  position: relative;
  width: 100%;
  max-width: 1150px;
  margin-inline: auto;
  padding: 28px var(--pfb-hero-inline-padding) 32px;
  color: var(--pfb-hero-deep-night);
  background: transparent;
  font-family: "PFB Space Grotesk", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  text-align: left;
}

.pfb-hero,
.pfb-hero *,
.pfb-hero *::before,
.pfb-hero *::after {
  box-sizing: border-box;
}

.pfb-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  min-width: 0;
}

.pfb-hero__content,
.pfb-hero__wall-card {
  min-width: 0;
}

.pfb-hero__label {
  margin: 0 0 10px;
  color: var(--pfb-hero-pixel-purple);
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.pfb-hero__title {
  margin: 0;
  max-width: 760px;
  color: var(--pfb-hero-deep-night);
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.pfb-hero__title span {
  display: block;
  white-space: nowrap;
}

.pfb-hero__introduction {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-top: 16px;
  color: var(--pfb-hero-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.pfb-hero__introduction p {
  margin: 0;
}

.pfb-hero__actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.pfb-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.pfb-hero__cta--primary {
  border-color: var(--pfb-hero-electric-blue);
  color: var(--pfb-hero-pixel-white);
  background: var(--pfb-hero-electric-blue);
}

.pfb-hero__cta--primary:hover {
  border-color: var(--pfb-hero-pixel-purple);
  background: var(--pfb-hero-pixel-purple);
}

.pfb-hero__cta--secondary {
  border-color: var(--pfb-hero-pixel-purple);
  color: var(--pfb-hero-pixel-purple);
  background: var(--pfb-hero-pixel-white);
}

.pfb-hero__cta--secondary:hover {
  background: var(--pfb-hero-soft-sand);
}

.pfb-hero__cta-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.pfb-hero__support {
  margin: 12px 0 0;
  color: var(--pfb-hero-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.pfb-hero__retro {
  margin: 7px 0 0;
  color: var(--pfb-hero-muted);
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.pfb-hero__retro span {
  color: var(--pfb-hero-brick-orange);
}

.pfb-hero__progress-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--pfb-hero-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgb(17 24 39 / 6%);
}

.pfb-hero__progress-head,
.pfb-hero__progress-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.pfb-hero__progress-kicker,
.pfb-hero__live-badge {
  margin: 0;
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.pfb-hero__progress-kicker {
  color: var(--pfb-hero-pixel-purple);
}

.pfb-hero__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pfb-hero-deep-night);
}

.pfb-hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pfb-hero-mint-pixel);
}

.pfb-hero__live-badge[data-state="unavailable"] {
  color: var(--pfb-hero-muted);
}

.pfb-hero__live-badge[data-state="unavailable"] .pfb-hero__live-dot {
  background: var(--pfb-hero-brick-orange);
}

.pfb-hero__progress-summary {
  align-items: end;
  margin-top: 12px;
}

.pfb-hero__progress-title {
  margin: 0 0 2px;
  color: var(--pfb-hero-secondary);
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.pfb-hero__progress-number {
  margin: 0;
  color: var(--pfb-hero-deep-night);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.pfb-hero__progress-number strong {
  font-size: 20px;
  font-weight: 500;
}

.pfb-hero__progress-number span {
  color: var(--pfb-hero-muted);
}

.pfb-hero__progress-percent {
  margin: 0 0 2px;
  color: var(--pfb-hero-electric-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.pfb-hero__progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--pfb-hero-border);
  border-radius: 3px;
  background: var(--pfb-hero-soft-sand);
}

.pfb-hero__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--pfb-hero-electric-blue);
  transition: none;
}

.pfb-hero--has-progress .pfb-hero__progress-fill {
  transition: width 480ms ease-out;
}

.pfb-hero__progress-fill::after {
  display: block;
  float: right;
  width: 4px;
  height: 100%;
  background: var(--pfb-hero-brick-orange);
  content: "";
}

.pfb-hero__raised {
  margin: 11px 0 0;
  color: var(--pfb-hero-deep-night);
  font-size: 14px;
  line-height: 1.35;
}

.pfb-hero__raised strong {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pfb-hero__progress-help {
  margin: 4px 0 0;
  color: var(--pfb-hero-muted);
  font-size: 13px;
  line-height: 1.4;
}

.pfb-hero__wall-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--pfb-hero-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgb(17 24 39 / 7%);
}

.pfb-hero__preview-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.pfb-hero__preview-kicker,
.pfb-hero__preview-title,
.pfb-hero__preview-note {
  margin: 0;
}

.pfb-hero__preview-kicker {
  color: var(--pfb-hero-brick-orange);
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.pfb-hero__preview-title {
  color: var(--pfb-hero-deep-night);
  font-family: "PFB Tektur", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.pfb-hero__preview-note {
  color: var(--pfb-hero-muted);
  font-size: 13px;
  line-height: 1.4;
}

.pfb-hero__wall-link {
  display: block;
  width: 100%;
  color: var(--pfb-hero-deep-night);
  text-decoration: none;
}

.pfb-hero__wall-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 430;
}

.pfb-hero__legend {
  margin-top: 13px;
}

.pfb-hero__legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pfb-hero__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pfb-hero-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.pfb-hero__legend-swatch {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--pfb-hero-border);
}

.pfb-hero__legend-swatch--available {
  background: var(--pfb-hero-soft-sand);
}

.pfb-hero__legend-swatch--sample {
  border-color: var(--pfb-hero-electric-blue);
  background: var(--pfb-hero-electric-blue);
}

.pfb-hero__legend-swatch--brick {
  border-color: var(--pfb-hero-brick-orange);
  background: var(--pfb-hero-brick-orange);
}

.pfb-hero__decor {
  position: absolute;
  z-index: 0;
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.pfb-hero__decor--top {
  top: 8px;
  right: var(--pfb-hero-inline-padding);
}

.pfb-hero__decor--bottom {
  right: var(--pfb-hero-inline-padding);
  bottom: 10px;
}

.pfb-hero__decor-pixel {
  display: block;
  width: 8px;
  height: 8px;
}

.pfb-hero__decor-pixel--purple {
  background: var(--pfb-hero-pixel-purple);
}

.pfb-hero__decor-pixel--blue {
  background: var(--pfb-hero-electric-blue);
}

.pfb-hero__decor-pixel--mint {
  background: var(--pfb-hero-mint-pixel);
}

.pfb-hero__decor-pixel--orange {
  background: var(--pfb-hero-brick-orange);
}

.pfb-hero__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pfb-hero__cta:focus-visible,
.pfb-hero__wall-link:focus-visible {
  outline: 3px solid var(--pfb-hero-mint-pixel);
  outline-offset: 3px;
}

@media (min-width: 480px) {
  .pfb-hero {
    --pfb-hero-inline-padding: 16px;
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .pfb-hero__layout {
    gap: 30px;
  }

  .pfb-hero__title {
    font-size: clamp(38px, 6vw, 42px);
    line-height: 1.04;
  }

  .pfb-hero__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .pfb-hero__cta {
    width: auto;
    min-width: 174px;
  }

  .pfb-hero__progress-card,
  .pfb-hero__wall-card {
    padding: 20px;
  }

  .pfb-hero__progress-head,
  .pfb-hero__progress-summary {
    gap: 16px;
  }

  .pfb-hero__progress-number {
    font-size: 18px;
  }

  .pfb-hero__progress-number strong {
    font-size: 27px;
  }

  .pfb-hero__progress-percent {
    font-size: 17px;
  }

  .pfb-hero__wall-card {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .pfb-hero__preview-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
  }

  .pfb-hero__preview-note {
    max-width: 210px;
    text-align: right;
  }
}

@media (min-width: 720px) {
  .pfb-hero {
    --pfb-hero-inline-padding: 20px;
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .pfb-hero__layout {
    gap: 34px;
  }

  .pfb-hero__title {
    font-size: 48px;
  }

  .pfb-hero__introduction {
    font-size: 17px;
  }

  .pfb-hero__progress-card,
  .pfb-hero__wall-card {
    padding: 22px;
  }

  .pfb-hero__wall-card {
    max-width: 760px;
  }

  .pfb-hero__progress-number strong {
    font-size: 30px;
  }
}

@media (min-width: 1150px) {
  .pfb-hero {
    --pfb-hero-inline-padding: 24px;
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .pfb-hero__layout {
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
    align-items: start;
    gap: 40px;
  }

  .pfb-hero__title {
    font-size: 52px;
    line-height: 1.03;
  }

  .pfb-hero__introduction {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.5;
  }

  .pfb-hero__actions {
    margin-top: 22px;
  }

  .pfb-hero__cta {
    min-height: 48px;
  }

  .pfb-hero__progress-card {
    margin-top: 24px;
    padding: 22px;
  }

  .pfb-hero__wall-card {
    max-width: none;
    margin-inline: 0;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfb-hero__cta,
  .pfb-hero__progress-fill {
    transition: none !important;
  }
}
