/*
 * SiskoAI Switch — Public website styles
 * Extends hq.css with public-only patterns:
 *   - Top bar (sticky, brand + nav + sign-in/sign-up)
 *   - Rotating hero with stat strip and dot indicators
 *   - Horizontal scrolling rails (one per pillar)
 *   - "How it works" three-step strip
 *   - Footer CTA banner
 *   - Footer with brand/nav/credit
 *
 * The hq.css design tokens (--brand-deep, --filling-amber, --paper, etc.)
 * carry through so the public site feels visibly continuous with the app.
 */

.public-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
}

/* ====================================================================
   TOP BAR — sticky, brand + nav + sign-in/sign-up
   ==================================================================== */
.public-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 30, 74, 0.08);
}
.public-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.public-brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.public-brand-name em {
  font-style: italic;
  color: var(--brand-bright);
  font-weight: 600;
}
.public-nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.public-nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s;
}
.public-nav-link:hover { color: var(--brand-bright); }
.public-topbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.public-link-quiet {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.public-link-quiet:hover { color: var(--brand-bright); }

@media (max-width: 800px) {
  .public-nav { display: none; }
  .public-topbar-inner { padding: 12px 18px; gap: 14px; }
}

/* ====================================================================
   PUBLIC BUTTONS — bigger, more confident than .hq-btn
   ==================================================================== */
.public-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-tight);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.public-btn-primary {
  background: var(--brand-bright);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45, 127, 255, 0.22);
}
.public-btn-primary:hover {
  background: var(--brand-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 127, 255, 0.30);
}
.public-btn-ghost {
  background: var(--paper);
  border-color: rgba(10, 30, 74, 0.14);
  color: var(--ink);
}
.public-btn-ghost:hover {
  border-color: var(--brand-bright);
  color: var(--brand-bright);
}
.public-btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}
.public-btn-xl {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 10px;
}

/* ====================================================================
   ROTATING HERO
   ==================================================================== */
.public-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 127, 255, 0.06) 0%, transparent 70%),
    var(--bg);
  padding: 60px 0 30px;
  border-bottom: 1px solid rgba(10, 30, 74, 0.06);
}
.public-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.public-hero-rotator {
  position: relative;
  min-height: 380px;
}
@media (max-width: 720px) {
  .public-hero-rotator { min-height: 460px; }
}
.public-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.public-hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.public-hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(10, 30, 74, 0.10);
  margin-bottom: 18px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
/* Pillar-tinted hero tag — picks up the data-pillar-tag color */
.public-hero-tag[data-pillar-tag="store"]      { color: var(--filling-amber);  border-color: rgba(255,140,0,0.30); background: rgba(255,140,0,0.06); }
.public-hero-tag[data-pillar-tag="recruit"]    { color: var(--filling-cyan);   border-color: rgba(0,184,217,0.30); background: rgba(0,184,217,0.06); }
.public-hero-tag[data-pillar-tag="capability"] { color: var(--filling-violet); border-color: rgba(139,92,246,0.30); background: rgba(139,92,246,0.06); }
.public-hero-tag[data-pillar-tag="polls"]      { color: var(--filling-rose);   border-color: rgba(244,63,94,0.30);  background: rgba(244,63,94,0.06); }

.public-hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 920px;
}
.public-hero-title em {
  font-style: italic;
  color: var(--brand-bright);
  font-weight: 700;
}
@media (max-width: 720px) {
  .public-hero-title { font-size: 38px; }
}
@media (max-width: 480px) {
  .public-hero-title { font-size: 30px; }
}

.public-hero-deck {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 28px;
}
@media (max-width: 600px) {
  .public-hero-deck { font-size: 15px; }
}

.public-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats strip */
.public-hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid rgba(10, 30, 74, 0.08);
  border-bottom: 1px solid rgba(10, 30, 74, 0.08);
}
.public-hero-stat {
  text-align: center;
}
.public-hero-stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.public-hero-stat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* Slide indicator dots */
.public-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.public-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(10, 30, 74, 0.18);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.public-hero-dot:hover { background: rgba(10, 30, 74, 0.32); }
.public-hero-dot.active {
  background: var(--brand-bright);
  transform: scale(1.3);
}

/* ====================================================================
   HORIZONTAL SCROLLING RAILS
   ==================================================================== */
.public-rail {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 22px;
}
.public-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}
.public-rail-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-faint);
}
.public-rail-eyebrow[data-pillar-tag="store"]      { color: var(--filling-amber); }
.public-rail-eyebrow[data-pillar-tag="recruit"]    { color: var(--filling-cyan); }
.public-rail-eyebrow[data-pillar-tag="capability"] { color: var(--filling-violet); }
.public-rail-eyebrow[data-pillar-tag="polls"]      { color: var(--filling-rose); }

.public-rail-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.2;
}
.public-rail-deck {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
  max-width: 640px;
}
.public-rail-more {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-bright);
  text-decoration: none;
  flex-shrink: 0;
  padding-bottom: 4px;
  transition: color 0.15s, transform 0.15s;
}
.public-rail-more:hover {
  color: var(--brand-mid);
  transform: translateX(2px);
}

/* The horizontal scrolling track */
.public-rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 30, 74, 0.20) transparent;
}
.public-rail-track::-webkit-scrollbar { height: 6px; }
.public-rail-track::-webkit-scrollbar-track { background: transparent; }
.public-rail-track::-webkit-scrollbar-thumb {
  background: rgba(10, 30, 74, 0.20);
  border-radius: 3px;
}

.public-rail-loading,
.public-rail-empty {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 30px 20px;
  text-align: center;
  width: 100%;
  font-style: italic;
}

/* ====================================================================
   PUBLIC CARDS — variants per pillar
   ==================================================================== */
.public-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid rgba(10, 30, 74, 0.08);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.public-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.public-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  opacity: 0;
  transition: opacity 0.18s;
}
.public-card:hover::before { opacity: 1; }
.public-card-store::before      { background: var(--filling-amber); }
.public-card-recruit::before    { background: var(--filling-cyan); }
.public-card-talent::before     { background: var(--filling-cyan); }
.public-card-capability::before { background: var(--filling-violet); }
.public-card-polls::before      { background: var(--filling-rose); }

/* Image (Store cards) */
.public-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--bread-crumb);
}
.public-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, var(--bread-crumb) 0%, var(--bread-crust) 100%);
  color: rgba(10, 30, 74, 0.30);
}

.public-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.public-card-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.public-card-eyebrow[data-pillar-tag="store"]      { color: var(--filling-amber); }
.public-card-eyebrow[data-pillar-tag="recruit"]    { color: var(--filling-cyan); }
.public-card-eyebrow[data-pillar-tag="capability"] { color: var(--filling-violet); }
.public-card-eyebrow[data-pillar-tag="polls"]      { color: var(--filling-rose); }

.public-card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.public-card-meta {
  font-size: 12px;
  color: var(--ink-faint);
}
.public-card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.public-card-stats {
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}
.public-card-stats strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.public-card-stats .dot { opacity: 0.4; }

.public-card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.public-card-price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.public-card-price-sm {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.public-card-unit {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-left: 2px;
}

/* Talent cards — different head structure (avatar + name + status pill) */
.public-card-talent .public-talent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 8px;
}
.public-talent-avatar {
  width: 40px; height: 40px;
  min-width: 40px; max-width: 40px;
  min-height: 40px; max-height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(10, 30, 74, 0.10);
  flex-shrink: 0;
}
.public-talent-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-ice);
  color: var(--brand-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.public-talent-loc {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.public-talent-status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.public-talent-status.avail {
  color: var(--filling-cyan);
  background: rgba(0, 184, 217, 0.10);
  border: 1px solid rgba(0, 184, 217, 0.26);
}
.public-talent-status.busy {
  color: var(--ink-faint);
  background: rgba(10, 30, 74, 0.06);
  border: 1px solid rgba(10, 30, 74, 0.10);
}
.public-talent-headline {
  padding: 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.public-card-talent .public-card-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(10, 30, 74, 0.06);
  margin-top: 10px;
}
.public-talent-rating {
  font-size: 13px;
  color: var(--ink);
}
.public-talent-rating em {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  color: var(--ink-faint);
}
.public-talent-rating-none {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ====================================================================
   "HOW IT WORKS" THREE-STEP STRIP
   ==================================================================== */
.public-how {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 70%),
    var(--paper);
  padding: 70px 24px 60px;
  margin-top: 60px;
  border-top: 1px solid rgba(10, 30, 74, 0.08);
  border-bottom: 1px solid rgba(10, 30, 74, 0.08);
}
.public-how-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.public-how-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 8px 0 36px;
  line-height: 1.15;
}
@media (max-width: 600px) {
  .public-how-title { font-size: 28px; }
}
.public-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
@media (max-width: 800px) {
  .public-how-grid { grid-template-columns: 1fr; gap: 16px; }
}
.public-how-step {
  background: var(--bg);
  border: 1px solid rgba(10, 30, 74, 0.08);
  border-radius: var(--radius-card);
  padding: 24px 26px;
}
.public-how-step-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--brand-bright);
  line-height: 1;
  margin-bottom: 10px;
}
.public-how-step-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.public-how-step-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ====================================================================
   FOOTER CTA
   ==================================================================== */
.public-footer-cta {
  padding: 80px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(45, 127, 255, 0.07) 0%, transparent 70%),
    var(--bg);
}
.public-footer-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.public-footer-cta-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 18px;
}
.public-footer-cta-title em {
  font-style: italic;
  color: var(--brand-bright);
}
@media (max-width: 600px) {
  .public-footer-cta-title { font-size: 32px; }
}
.public-footer-cta-deck {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto 32px;
  max-width: 600px;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.public-footer {
  background: var(--paper);
  border-top: 1px solid rgba(10, 30, 74, 0.08);
  padding: 36px 24px;
}
.public-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.public-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.public-footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.public-footer-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.public-footer-nav a:hover { color: var(--brand-bright); }
.public-footer-credit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  width: 100%;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 30, 74, 0.06);
  margin-top: 4px;
}