/* =========================================================================
   HairCommerce — Public Homepage & 404
   Palette: navy #1B3A5C | blue #2E6DA4 | white | light grey #F8FAFC
   ========================================================================= */

/* ── Reset & base ────────────────────────────────────────────────────────── */
.hc-pub *,
.hc-pub *::before,
.hc-pub *::after { box-sizing: border-box; margin: 0; padding: 0; }

.hc-pub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: #1A202C;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.hc-pub-nav {
  background: #1B3A5C;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.hc-pub-nav__brand {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.hc-pub-nav__links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hc-pub-nav__link--primary {
  background: #2E6DA4;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}
.hc-pub-nav__link--primary:hover { background: #265e8f; }
.hc-pub-nav__link--secondary {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s;
}
.hc-pub-nav__link--secondary:hover { color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hc-pub-hero {
  background: linear-gradient(150deg, #1B3A5C 0%, #2a5a8c 55%, #2E6DA4 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
}
.hc-pub-hero__inner { max-width: 680px; margin: 0 auto; }

.hc-pub-hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hc-pub-hero__headline {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hc-pub-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hc-pub-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hc-pub-hero__cta-primary {
  background: #fff;
  color: #1B3A5C;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.hc-pub-hero__cta-primary:hover { background: #ebf4ff; }
.hc-pub-hero__cta-secondary {
  border: 2px solid rgba(255,255,255,0.45);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.hc-pub-hero__cta-secondary:hover { border-color: #fff; }

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.hc-pub-section { padding: 60px 24px; }
.hc-pub-section--alt { background: #F8FAFC; }
.hc-pub-section__inner { max-width: 1020px; margin: 0 auto; }
.hc-pub-section__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1B3A5C;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  text-align: center;
}
.hc-pub-section__sub {
  font-size: 0.95rem;
  color: #4A5568;
  text-align: center;
  margin-bottom: 44px;
  line-height: 1.6;
}

/* ── Feature cards ───────────────────────────────────────────────────────── */
.hc-pub-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 16px;
}
.hc-pub-feature-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 24px 20px;
  transition: box-shadow 0.15s;
}
.hc-pub-feature-card:hover { box-shadow: 0 4px 16px rgba(27,58,92,0.09); }
.hc-pub-feature-card__icon { font-size: 1.5rem; margin-bottom: 12px; }
.hc-pub-feature-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1B3A5C;
  margin-bottom: 6px;
}
.hc-pub-feature-card__desc {
  font-size: 0.81rem;
  color: #4A5568;
  line-height: 1.55;
}

/* ── Workflow steps ──────────────────────────────────────────────────────── */
.hc-pub-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.hc-pub-workflow-step { display: flex; gap: 14px; }
.hc-pub-workflow-step__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #2E6DA4;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 2px;
}
.hc-pub-workflow-step__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1B3A5C;
  margin-bottom: 5px;
}
.hc-pub-workflow-step__desc {
  font-size: 0.82rem;
  color: #4A5568;
  line-height: 1.55;
}

/* ── Trust list ──────────────────────────────────────────────────────────── */
.hc-pub-trust {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 580px;
  margin: 0 auto;
}
.hc-pub-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.hc-pub-trust-item__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #1B3A5C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}
.hc-pub-trust-item__text {
  font-size: 1rem;
  color: #1A202C;
  font-weight: 500;
  line-height: 1.55;
}

/* ── Storefront note ─────────────────────────────────────────────────────── */
.hc-pub-note {
  background: #EBF4FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 20px 28px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hc-pub-note__text {
  font-size: 0.88rem;
  color: #1E40AF;
  line-height: 1.65;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.hc-pub-footer {
  background: #1B3A5C;
  color: rgba(255,255,255,0.72);
  padding: 32px 24px;
}
.hc-pub-footer__inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.hc-pub-footer__brand { color: #fff; font-weight: 700; font-size: 1rem; }
.hc-pub-footer__links { display: flex; gap: 20px; }
.hc-pub-footer__link {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.hc-pub-footer__link:hover { color: #fff; }

/* ── 404 page ────────────────────────────────────────────────────────────── */
.hc-pub-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hc-pub-404__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: #F8FAFC;
}
.hc-pub-404__card {
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.hc-pub-404__code {
  font-size: 5.5rem;
  font-weight: 900;
  color: #E2E8F0;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.hc-pub-404__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1B3A5C;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hc-pub-404__msg {
  font-size: 0.95rem;
  color: #4A5568;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hc-pub-404__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.hc-pub-404__cta-primary {
  background: #1B3A5C;
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.hc-pub-404__cta-primary:hover { background: #2E6DA4; }
.hc-pub-404__cta-secondary {
  border: 2px solid #1B3A5C;
  color: #1B3A5C;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.hc-pub-404__cta-secondary:hover { background: #1B3A5C; color: #fff; }
.hc-pub-404__platform-link {
  font-size: 0.82rem;
  color: #64748B;
}
.hc-pub-404__platform-link a {
  color: #2E6DA4;
  text-decoration: none;
}
.hc-pub-404__platform-link a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hc-pub-nav { padding: 0 16px; }
  .hc-pub-nav__link--secondary { display: none; }

  .hc-pub-hero { padding: 52px 20px 60px; }
  .hc-pub-hero__headline { font-size: 1.85rem; }

  .hc-pub-section { padding: 44px 20px; }

  .hc-pub-features { grid-template-columns: 1fr 1fr; }

  .hc-pub-workflow { grid-template-columns: 1fr; gap: 20px; }

  .hc-pub-footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }

  .hc-pub-404__code { font-size: 4rem; }
  .hc-pub-404__title { font-size: 1.25rem; }
}

@media (max-width: 380px) {
  .hc-pub-features { grid-template-columns: 1fr; }
}
