/* Team workspaces feature page */
.ws-page {
  background:
    radial-gradient(80% 42% at 50% -6%, rgba(79, 70, 229, 0.12), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 28%, #ffffff 100%);
}

.landing-page > .ws-main {
  box-sizing: border-box;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.ws-main,
.ws-stage,
.ws-board,
.ws-switcher,
.ws-days article,
.ws-features article,
.ws-share article,
.ws-roles article,
.ws-steps li {
  min-width: 0;
}

.ws-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  color: #475569;
  font-size: 0.9rem;
  text-decoration: none;
}

.ws-back:hover { color: #0f172a; }

.ws-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f46e5;
}

.ws-hero {
  max-width: 40rem;
  padding: 12px 0 28px;
}

.ws-hero h1,
.ws-band h2,
.ws-section h2,
.ws-cta h2 {
  margin: 0;
  font-family: var(--display, "Sora", "Inter", system-ui, sans-serif);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #0f172a;
  text-wrap: balance;
}

.ws-hero h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 800; }

.ws-lead,
.ws-cta p,
.ws-help,
.ws-share p,
.ws-roles p,
.ws-steps span {
  color: #475569;
  line-height: 1.55;
}

.ws-lead { margin: 14px 0 0; font-size: 1.08rem; }

.ws-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ws-hero-actions .button,
.ws-cta .button {
  max-width: 100%;
  box-sizing: border-box;
}

.ws-stage {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.ws-switcher,
.ws-board {
  border-radius: 16px;
  background: #f8fafc;
}

.ws-switcher {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.ws-switcher-label,
.ws-switcher-note {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.ws-switcher button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.ws-switcher button strong,
.ws-switcher button small { display: block; }
.ws-switcher button small { color: #64748b; font-size: 0.78rem; }

.ws-switcher button.is-active {
  background: #fff;
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ws-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ws-mark, #4f46e5);
  color: #fff;
  font-weight: 700;
  flex: none;
}

.ws-switcher-note {
  margin-top: 14px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  font-size: 0.82rem;
}

.ws-board { padding: 16px 16px 12px; }

.ws-board-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
}

.ws-board h2 {
  margin: 0;
  min-width: 0;
  font-size: clamp(0.95rem, 2.4vw, 1rem);
  color: #0f172a;
  overflow-wrap: anywhere;
}

.ws-chip {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.ws-days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ws-days li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ws-days li > span {
  padding-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.ws-days article {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ws-days em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: #4f46e5; }
.ws-days p {
  margin: 3px 0 6px;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.ws-days b {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.72rem;
}
.ws-days b.is-ready { background: #ecfdf5; color: #047857; }

.ws-board blockquote {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-left: 3px solid #c7d2fe;
  border-radius: 0 12px 12px 0;
  background: #fff;
  color: #334155;
  font-size: 0.92rem;
}

.ws-board blockquote strong { color: #0f172a; }

.ws-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.ws-points li,
.ws-panel,
.ws-shot,
.ws-band,
.ws-band-copy {
  min-width: 0;
}

.ws-shot {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #eef2ff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.ws-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.ws-shot-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px 4px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
}

.ws-shot-chrome i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #cbd5e1;
}

.ws-shot-chrome i:first-child { background: #fb7185; }
.ws-shot-chrome i:nth-child(2) { background: #fbbf24; }
.ws-shot-chrome i:nth-child(3) { background: #34d399; }
.ws-shot-chrome span { margin-left: 6px; }

.ws-shot--live {
  padding-bottom: 12px;
  background:
    radial-gradient(80% 80% at 100% 0%, #c7d2fe, transparent 55%),
    #e0e7ff;
}

.ws-shot--live .ws-stage {
  margin: 0 12px;
  border: 0;
  box-shadow: none;
}

.ws-points li {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ws-point-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4338ca;
}

.ws-points strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.ws-points li > span:last-child {
  display: block;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ws-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px 48px;
  align-items: center;
  padding: 72px 0 0;
}

.ws-band--stack {
  grid-template-columns: 1fr;
  gap: 18px;
}

.ws-band--flip .ws-band-copy { order: 2; }

.ws-band h2,
.ws-section h2,
.ws-cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  max-width: 16em;
}

.ws-band-copy > p:last-child {
  margin: 12px 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.55;
}

.ws-panel {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.ws-panel-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.ws-people,
.ws-follow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ws-people li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #f8fafc;
}

.ws-people strong,
.ws-people small { display: block; }
.ws-people small { color: #64748b; font-size: 0.78rem; }
.ws-people em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4338ca;
}

.ws-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 12px;
}

.ws-invite-mail,
.ws-invite-role,
.ws-invite-btn,
.ws-approve,
.ws-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.ws-invite-mail {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-invite-role,
.ws-ghost {
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ws-invite-btn,
.ws-approve {
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
}

.ws-draft-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.ws-draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.ws-draft-meta b {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.72rem;
}

.ws-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ws-panel-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.ws-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.ws-note strong { color: #0f172a; }
.ws-note p { margin: 4px 0 0; color: #334155; }

.ws-follow li {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.ws-follow em {
  display: block;
  margin-bottom: 4px;
  font-style: normal;
  font-weight: 700;
  color: #4f46e5;
}

.ws-follow span {
  display: block;
  color: #334155;
  line-height: 1.45;
}

.ws-section { padding: 72px 0 0; }
.ws-section h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); max-width: 18em; }

.ws-help { margin: 28px 0 0; }
.ws-help a,
.ws-page .faq-answer a { color: #4338ca; }

.ws-page .faq-list { margin-top: 16px; }
.ws-page .faq-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  margin-bottom: 8px;
}
.ws-page .faq-question {
  display: block;
  padding: 14px 16px;
  font-weight: 650;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.ws-page .faq-answer { margin: 0; padding: 0 16px 14px; color: #475569; }

.ws-cta {
  margin-top: 56px;
  padding: 36px 24px;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
    #fff;
  border: 1px solid rgba(79, 70, 229, 0.16);
}

.ws-cta p { max-width: 36rem; margin: 10px auto 18px; }

@media (max-width: 980px) {
  .ws-points { grid-template-columns: 1fr 1fr; }
  .ws-band,
  .ws-band--flip { grid-template-columns: 1fr; }
  .ws-band--flip .ws-band-copy { order: 0; }
  .ws-stage { grid-template-columns: 1fr; }
  .ws-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ws-switcher-label,
  .ws-switcher-note { grid-column: 1 / -1; }
  .ws-switcher button { margin-top: 0; }
  .ws-switcher-note { margin-top: 4px; }
}

@media (max-width: 640px) {
  .landing-page > .ws-main { width: min(1080px, calc(100% - 32px)); padding-bottom: 64px; }
  .ws-hero { padding-top: 4px; }
  .ws-hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); }
  .ws-lead { font-size: 1rem; }
  .ws-section,
  .ws-band { padding-top: 48px; }
  .ws-points,
  .ws-switcher { grid-template-columns: 1fr; }
  .ws-invite-row { grid-template-columns: 1fr; }
  .ws-cta { margin-top: 40px; padding: 28px 16px; }
  .ws-days li { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 420px) {
  .landing-page > .ws-main { width: min(1080px, calc(100% - 24px)); }
  .ws-hero-actions,
  .ws-cta { align-items: stretch; }
  .ws-hero-actions { flex-direction: column; }
  .ws-hero-actions .button,
  .ws-cta .button {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .ws-stage { padding: 10px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-stage { scroll-behavior: auto; }
}
